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

iOS change statusbar style

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS

    Description

      When i set window flag MaximizeUsingFullscreenGeometryHint, Qt set prefferedStatusBarStyle of QIOSViewController to UIStatusBarStyleDefault, but i need UIStatusBarStyleLightContent.
      No way to change statusbar color, when app is fullscreen. Look at the source:

      qiosviewcontroller.mm
          if (focusWindow->flags() & Qt::MaximizeUsingFullscreenGeometryHint)
              self.preferredStatusBarStyle = UIStatusBarStyleDefault;
          else
              self.preferredStatusBarStyle = UIStatusBarStyleLightContent;
      

      Possible solutions:
      1) using UIStatusBar key from Info.plist
      2) cross-platform options to setup statusbar appearance on all platforms

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            dead_man_2000 ss
            Votes:
            3 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes