Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt 5.4 iOS White Startup Screen
Forum Updated to NodeBB v4.3 + New Features

Qt 5.4 iOS White Startup Screen

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 5 Posters 3.0k Views 2 Watching
  • 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.
  • C Offline
    C Offline
    carlinski
    wrote on last edited by
    #1

    Qt 5.4 C++

    Moving from 5.3 to 5.4 when the app starts, I now get a white screen with the app name in the middle for a few seconds. Doesn't look good.

    Is this something that needs addressing in XCode via the LaunchScreen setup, or is it Qt causing the problem? I would guess it's Qt as it did not do it in 5.3.

    Thanks, Carl

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrAlmond
      wrote on last edited by
      #2

      Same problem for me...but it happens only on iOS 8, with iOS 7 I get the correct launch screen configured using assets.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        TioRoy
        wrote on last edited by
        #3

        In IOS8, startup screen is defined by a xib file. Qt 5.4 includes a default xib file with a label with the name of application.

        If you use a custom .plist file in your project (using QMAKE_INFO_PLIST). You can create a xib file in XCode, copy the file, and include the entry in .plist:

        @
        <key>UILaunchStoryboardName</key>
        <string>myLaunchFile</string>
        @

        You can specify launch images to IOS8, but it's not recommended.
        You can read more "here":http://doc-snapshot.qt-project.org/qt5-5.4/platform-notes-ios.html

        clogwogC 1 Reply Last reply
        0
        • T TioRoy

          In IOS8, startup screen is defined by a xib file. Qt 5.4 includes a default xib file with a label with the name of application.

          If you use a custom .plist file in your project (using QMAKE_INFO_PLIST). You can create a xib file in XCode, copy the file, and include the entry in .plist:

          @
          <key>UILaunchStoryboardName</key>
          <string>myLaunchFile</string>
          @

          You can specify launch images to IOS8, but it's not recommended.
          You can read more "here":http://doc-snapshot.qt-project.org/qt5-5.4/platform-notes-ios.html

          clogwogC Offline
          clogwogC Offline
          clogwog
          wrote on last edited by
          #4

          @TioRoy have you been able to get a different xib file to be used as launch screen ? i've read the platform notes at http://doc.qt.io/qt-5/platform-notes-ios.html#launch-images but i can't get it to pickup on it. it still uses the default xib.

          clogwogC 1 Reply Last reply
          0
          • clogwogC clogwog

            @TioRoy have you been able to get a different xib file to be used as launch screen ? i've read the platform notes at http://doc.qt.io/qt-5/platform-notes-ios.html#launch-images but i can't get it to pickup on it. it still uses the default xib.

            clogwogC Offline
            clogwogC Offline
            clogwog
            wrote on last edited by
            #5

            @clogwog never mind. found that when i change the name of the xib from launchscreen to startscreen.xib it works. now only have to figure out how to add images to the xib....

            T 1 Reply Last reply
            0
            • clogwogC clogwog

              @clogwog never mind. found that when i change the name of the xib from launchscreen to startscreen.xib it works. now only have to figure out how to add images to the xib....

              T Offline
              T Offline
              TioRoy
              wrote on last edited by
              #6

              @clogwog

              You can use another name to start xib, but you need a plist file in your .pro. We copied the file generated by qmake, to make some changes.

              To add images, put the images in your project directory and include in your .pro.

              ios {
                  QMAKE_INFO_PLIST = $$PWD/ios/Info.plist  
              
                  BUNDLE_DATA.files = $$PWD/ios/icons/Icon.png \
                      $$PWD/ios/icons/Icon@2x.png \
                      $$PWD/ios/icons/Icon-60.png \
                      $$PWD/ios/icons/Icon-60@2x.png \
                      $$PWD/ios/icons/Icon-72.png \
                      $$PWD/ios/icons/Icon-72@2x.png \
                      $$PWD/ios/icons/Icon-76.png \
                      $$PWD/ios/icons/Icon-76@2x.png \
                      $$PWD/ios/icons/Icon-Small.png \
                      $$PWD/ios/icons/Icon-Small@2x.png \
                      $$PWD/ios/icons/Icon-Small-40.png \
                      $$PWD/ios/icons/Icon-Small-40@2x.png \
                      $$PWD/ios/icons/Icon-Small-50.png \
                      $$PWD/ios/icons/Icon-Small-50@2x.png \
                      $$PWD/ios/meuBRTLaunch.xib
              
                  QMAKE_BUNDLE_DATA += BUNDLE_DATA
              }
              
              1 Reply Last reply
              0
              • M Offline
                M Offline
                Markus Goetz53
                wrote on last edited by
                #7

                Note that iOS has a bug where it caches old launch screens
                https://stackoverflow.com/a/35783070

                1 Reply Last reply
                0

                • Login

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