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. iPad status bar color settings not working in QT5.11.2 BUG?

iPad status bar color settings not working in QT5.11.2 BUG?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
5 Posts 2 Posters 745 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.
  • D Offline
    D Offline
    dspverden
    wrote on 13 Nov 2018, 15:15 last edited by dspverden
    #1

    Hello,

    I am currently building a new app for iPad. The app has an almost black background. That makes the iOS status bar almost unreadable. I tried several settings in Info.plist but none of them solves the issue. Even if I enable "Hide Status Bar" it disappears during app launch but after launch it is back with black foreground color.
    Two years ago I made another app with an earlier version of QT, this was showing correctly with black background and white foreground, but when I recompile with QT5.11.2 it goes wrong even for the previous app.
    Since this is really a show stopper I need some help how to fix this. Else I would have to rewrite my apps with another framework or go back to the last working QT version, obviously I don't want that. ;-)

    I tried to completely hide the status bar as a workaround but even that did not work.

    I have attached a screenshot from my iPad showing the problem.

    Any help is welcome!

    Raphael

    0_1542122119587_IMG_0074.PNG

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mammamia
      wrote on 13 Nov 2018, 15:23 last edited by
      #2

      Hi, @dspverden Can you give a try with this StatusBar from JP Nurmi.

      https://github.com/jpnurmi/statusbar

      This will allow setting the color of the Status bar on Android and iOS.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dspverden
        wrote on 13 Nov 2018, 15:31 last edited by
        #3

        Hm, it is a bit unclear to me how to use this. My app does not use qml.

        M 1 Reply Last reply 13 Nov 2018, 15:45
        0
        • D dspverden
          13 Nov 2018, 15:31

          Hm, it is a bit unclear to me how to use this. My app does not use qml.

          M Offline
          M Offline
          Mammamia
          wrote on 13 Nov 2018, 15:45 last edited by
          #4

          @dspverden Ah Okay. My bad. I thought its a QML app. Did you try with another version of Qt <5.11.2? This can be a bug in the latest Qt version.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dspverden
            wrote on 13 Nov 2018, 16:03 last edited by dspverden
            #5

            It is indeed a bug:
            https://bugreports.qt.io/browse/QTBUG-57062

            The given workaround solved it for me.

            You need to replace

            return UIStatusBarStyleLightContent;

            by

            return UIStatusBarStyleBlackOpaque;

            0_1542125182866_IMG_0075.PNG

            1 Reply Last reply
            4

            4/5

            13 Nov 2018, 15:45

            • Login

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