QML on android does not fill the entire screen
-
I found a 3rd phone that has an even taller white line.
The reference to Screen.width etc did give me an idea.
I created a big empty app and just a label with those numbers printed in the center.The fun result is that I got the low-res number. Not the actual number. (360 x 780 instead of 720x1560).
And I got the exact same number on both phones, including the one with the white.So, next step. Show the size of my big empty app. It gives me 360x706 on the phone where I do not have a white bar.
The one with the white bar gives me 360x686.So, concluding, the "Screen" part is irrelevant here as that is the 'fullscreen' size. Additionally, this is a problem that looks like it can not be solved from QML as we simply don't get the full graphics area to draw on...
So, lets try a simple QtGui-only app. No QML. Just a QWindow. Darn, no clue how to draw on that. Ok, QWidget it is. And, voila. same problem there...This is not a QML issue. I'm 90% certain this is a bug in Qt (QWindow, or more likely some Android specific thing code or plugin).
-
@JoeCFD said in QML on android does not fill the entire screen:
visibility: Window.FullScreen
yeah this allowed my app to be real fullscreen without showing that ugly while line! thank you!
this btw hides the system buttons and the top notification bar, which I'd like to see in my application. Until I'll find a fix I'll use this workaround, thanks you very much!
-
@TomZ Good tests! One way to work around this is to get display size from Java code and resize qml window to that size.
-
I found a 3rd phone that has an even taller white line.
The reference to Screen.width etc did give me an idea.
I created a big empty app and just a label with those numbers printed in the center.The fun result is that I got the low-res number. Not the actual number. (360 x 780 instead of 720x1560).
And I got the exact same number on both phones, including the one with the white.So, next step. Show the size of my big empty app. It gives me 360x706 on the phone where I do not have a white bar.
The one with the white bar gives me 360x686.So, concluding, the "Screen" part is irrelevant here as that is the 'fullscreen' size. Additionally, this is a problem that looks like it can not be solved from QML as we simply don't get the full graphics area to draw on...
So, lets try a simple QtGui-only app. No QML. Just a QWindow. Darn, no clue how to draw on that. Ok, QWidget it is. And, voila. same problem there...This is not a QML issue. I'm 90% certain this is a bug in Qt (QWindow, or more likely some Android specific thing code or plugin).
@TomZ thanks for reporting the bug! I hope this will be fixed soon
One way to work around this is to get display size from Java code and resize qml window to that size.
I have no knowledge in java at all, is this something really simple or a complex problem? how can I do this or where can I read some documentation about this?
swipe the top or bottom part of your app and you will be able to see top or bottom bar.
I know, but I'd like to be able to see it without user interaction, just as any normal non-fullscreen app
thanks guys!
-
@TomZ thanks for reporting the bug! I hope this will be fixed soon
One way to work around this is to get display size from Java code and resize qml window to that size.
I have no knowledge in java at all, is this something really simple or a complex problem? how can I do this or where can I read some documentation about this?
swipe the top or bottom part of your app and you will be able to see top or bottom bar.
I know, but I'd like to be able to see it without user interaction, just as any normal non-fullscreen app
thanks guys!
@tubbadu It is not hard to learn Java. You may need it sooner or later if you work on Android projects. Try to add one or two more pixels to the width of Screen manually to fix the size of your app and to see if the problem is gone. The users will not be able to see the difference if it works.
-
This was added to Qt yesterday, to be released in the 6.4.2 release soon, it may actually solve this issue.
-
This was added to Qt yesterday, to be released in the 6.4.2 release soon, it may actually solve this issue.
-
@Galbarad thanks, good to know.
I had the same experience. It solved it for one guy that had the latest Android and turned on some feature to replace the bottom bar.
But the majority of people having the issue still have it.If you have time, please consider going on the bugreport and reporting exactly which android device you are seeing this on.
-
@Galbarad thanks, good to know.
I had the same experience. It solved it for one guy that had the latest Android and turned on some feature to replace the bottom bar.
But the majority of people having the issue still have it.If you have time, please consider going on the bugreport and reporting exactly which android device you are seeing this on.
-
@Galbarad thanks, good to know.
I had the same experience. It solved it for one guy that had the latest Android and turned on some feature to replace the bottom bar.
But the majority of people having the issue still have it.If you have time, please consider going on the bugreport and reporting exactly which android device you are seeing this on.
-
is this problem solved?
-
is this problem solved?
@NullByte yes. in Qt 5.15.13 ... coming soon ...
-
@NullByte yes. in Qt 5.15.13 ... coming soon ...
@ekkescorner This update available for Qt 6.4 or only 5.15.13 ?
-
@ekkescorner This update available for Qt 6.4 or only 5.15.13 ?
@NullByte I expect that it should also be available for Qt 6, but don't know which version. wait for the next version and take a look at the readme which bugs are fixed
-
@ekkescorner This update available for Qt 6.4 or only 5.15.13 ?
@NullByte
The relevant issues;
https://bugreports.qt.io/browse/QTBUG-109268
https://bugreports.qt.io/browse/QTBUG-107923
https://bugreports.qt.io/browse/QTBUG-107604
Check the page and find "Fix Version/s". It lists the versions that the bugfix will be first released in.