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