Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Splash Screen doesn't work
Qt 6.11 is out! See what's new in the release blog

Splash Screen doesn't work

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 677 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    scralings
    wrote on last edited by kshegunov
    #1

    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();
     }
    
    1 Reply Last reply
    0
    • RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #2

      @scralings
      Is your SplashScreen a QDialog ? http://doc.qt.io/qt-4.8/qdialog.html#modal-prop

      also http://stackoverflow.com/questions/26107423/qt-setmodal-does-not-work

      --Alles ist gut.

      1 Reply Last reply
      3

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved