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

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -