Results 1 to 2 of 2

Thread: PyQT5 No Taskbar Details after Splash Screen

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,325
    Thanks
    316
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: PyQT5 No Taskbar Details after Splash Screen

    I don't understand why you are using QMainWindow for the splash screen when Qt has a QSplashScreen class for this purpose. I also don't understand why you are using calls to sleep() instead of using a single-shot QTimer to control the length of time the splash screen is displayed.

    The usual scenario is:

    - Create the QSplashScreen instance
    - Create the QMainWindow instance. Do not call show() on it.
    - Tell the splash screen that it should close when the main window is shown (QSplashScreen::finish())
    - show() the splash screen
    - Create a single-shot QTimer and connect its timeout() signal to the main window's show() slot, then start the timer.
    - app.exec_()

    If loading the background data is time consuming, then instead of using a QTimer, have the data loading method call show() on the main window when it finishes. That way, the splash screen will be displayed for as long as it takes to complete loading your data.
    Last edited by d_stranz; 7th November 2019 at 18:52.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. Problem with Splash Screen ?
    By vinod in forum Qt Programming
    Replies: 13
    Last Post: 11th April 2020, 17:15
  2. Independent splash screen
    By ndev in forum Qt Programming
    Replies: 3
    Last Post: 23rd September 2014, 18:52
  3. splash screen problem
    By wizarda in forum Qt Programming
    Replies: 9
    Last Post: 15th January 2011, 02:05
  4. How to Keep Splash Screen and App on Same Display
    By ajb_advance in forum Qt Programming
    Replies: 2
    Last Post: 4th March 2009, 11:49
  5. Splash Screen
    By Salazaar in forum Newbie
    Replies: 27
    Last Post: 4th June 2007, 17:31

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.