Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-35787

QSplashScreen won't display on iOS unless a QMessageBox or similar event loop completes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.2.0, 5.5.1
    • iOS (both simulator and device). Was running iOS 7.0.3, but doesn't seem to matter whether which version or whether it's iPhone or iPad. Works OK on Mac desktop and other platforms
    • iOS/tvOS/watchOS

    Description

      When displaying a QSplashScreen on iOS it will not display unless a QMessageBox or similar dialog gets a chance to run – regardless of how many times show, processEvents, repaint, flush, sendPostedEvents, etc, are called.

      See attached NoSplash example. As it's presented in the zip, you won't see the splash screen. Uncomment the QMessageBox call and then it will display once the MessageBox has been dismissed.

      But it works correctly on a Mac desktop build. And I believe it's working OK on Android, Linux, and Windows as well, though those three platforms I haven't had a chance to test 5.2.0, only 5.2.0-RC1.

      I'm suspicious it might be a window geometry issue where somehow the extents of the screen doesn't get computed until after the dialog is displayed. But that's just a conjecture.

      I did try every combination imaginable of calling the splash's show and repaint functions, and the application's processEvents, flush, and sendPostedEvents functions and they seemed to have no effect.

      Attachments

        1. NoSplash.zip
          10 kB
          Donna Whisnant
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            dewhisna Donna Whisnant
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes