iPad status bar color settings not working in QT5.11.2 BUG?
-
wrote on 13 Nov 2018, 15:15 last edited by dspverden
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
-
wrote on 13 Nov 2018, 15:23 last edited by
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.
-
wrote on 13 Nov 2018, 15:31 last edited by
Hm, it is a bit unclear to me how to use this. My app does not use qml.
-
wrote on 13 Nov 2018, 15:45 last edited by
@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.
-
wrote on 13 Nov 2018, 16:03 last edited by dspverden
It is indeed a bug:
https://bugreports.qt.io/browse/QTBUG-57062The given workaround solved it for me.
You need to replace
return UIStatusBarStyleLightContent;
by
return UIStatusBarStyleBlackOpaque;
1/5