android - How to get a fullscreen Rectangle with Qt5.2 using qml? -
I am new to coding and Android apps with Qt5.2 while using qm5,
Full screen app back ground rectangle with a full Android device:
rectangle {id: fullscreenbackground height :? Width:? ......} It seems that the height or width should be clarified and can not be used to define the percentage.
Change the size of the top-level item to see, use:
view.setResizeMode (QQuickView:: SizeRootObjectToView); This overrides any width / height on top-level QML items
anchor for non-top-level items. Fill: Parents On Android, setting size modification will be enough, on other platforms, you may have to clearly show the scene:
view.showFullscreen ();
Comments
Post a Comment