Priority: P0: Blocker
Fix Version/s: None
Component/s: Quick: Controls 2
Qt5.9.2, QtQuick 2.9, QtQuick Controls 2.2, Samsung Note 5 with Android 7.0 and tested with screen resolutions HD(1280*720) FHD(1920*1080) and WQHD(2560*1440), Windows 10 for development.
In Qt5.9.2, I created a black rectangle inside a red ApplicationWindow for Samsung Note-5 with screen resolutions 1280*720, 1920*1080, 2560*1440 and Android-7.0 in two ways:
- A rectangle having the same width and height of the ApplicationWindow
- anchors.fill : parent
But in both ways the response is same - rectangle doesn't fill the entire ApplicationWindow. You can see about a pixel line on top side and about a pixel line on right side of the ApplicationWindow which is not filled. Even if I make a much larger Rectangle than the ApplicationWindow itself, I get the same output.
I noticed that If I try to nest rectangles and fill the parent rectangle with a child one then I get the completely filled parent rectangle without any issues.
I also noticed that if I comment the following line of code, the problem goes away but this is not the solution as then the UI elements don't scale with respect to the device screen sizes.
Here I have attached a picture and a working project for testing.