Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QDesktopWidget* desktop = QApplication::desktop();
- const QRect desktopRect = desktop->availableGeometry();
- QPixmap splashPixmap(desktopRect.width(), desktopRect.height());
- qWarning() << "desktopRect.width(): " << desktopRect.width();
- qWarning() << "desktopRect.height(): " << desktopRect.height();
- splashPixmap.fill(Qt::red);
- QSplashScreen splash(splashPixmap);
- splash.showFullScreen();
- qWarning() << "called splash.showFullScreen()";
- QDeclarativeView view;
- view.setResizeMode(QDeclarativeView::SizeRootObjectToView);
- view.setAttribute(Qt::WA_AutoOrientation);
- view.setSource(QUrl("qrc:/DiscountCalcUi.qml"));
- qWarning() << "about to call view.show()";
- view.show();
- splash.finish(&view);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement