How to keep ApplicationWindow aspect ratio
Unsolved
QML and Qt Quick
-
I want keep aspect ratio (16:9) for a ApplicationWindow.
Resizing the window until the user releases the mouse button does not work.Qt 5.13, Windows, Linux, Mac OS
Example:
ApplicationWindow { readonly property real aspectRatio: 16.0/ 9.0 //... onHeightChanged: { width = height * aspectRatio } }
Is'n work.
Any attempts to resize from the code (QML or C++) do not work while the user resizes the window.