Query: How to design single UI binary to support multiple resolutions
Solved
QML and Qt Quick
-
Hi Team,
Can some one please provide some pointers on the below query.
I have a embedded targets with different screen resolutions like 480x272 and 1024x600.
I am developing an UI application in QML.- How can I design a single UI to support both the resolutions ?
- Do I have to compile the source with separate resolutions to have a separate binaries for 480x272 and 1024x600 ? or is there a way to support a single binary for both the resolutions ?
Thank you,
Praveen -
@Praveen-Illa Use layouts to position and size your items according to window size.
See https://doc.qt.io/qt-5/qml-qtquick-layouts-layout.html
https://doc.qt.io/qt-5/qtquicklayouts-index.html