Splash Screen doesn't work
Unsolved
General and Desktop
-
I get this error
C2039: 'setModal' : is not a member of 'SplashScreen' 40: C:\Users\scralings\Documents\Mook's Work\Trains\MyLEGOTrain2\mainwindow.cpp:
Can anybody Help? My Code looks like this…
My PRO:
SOURCES += main.cpp\ mainwindow.cpp \ splashscreen.cpp HEADERS += mainwindow.h \ splashscreen.h FORMS += mainwindow.ui \ splashscreen.ui
My H:
private slots: void on_actionSplashScreen_triggered();
My CPP:
#include "splashscreen.h" void MainWindow::on_actionSplashScreen_triggered() { SplashScreen mySplashScreen; mySplashScreen.setModal(true); mySplashScreen.exec(); }
-
@scralings
Is your SplashScreen a QDialog ? http://doc.qt.io/qt-4.8/qdialog.html#modal-propalso http://stackoverflow.com/questions/26107423/qt-setmodal-does-not-work