Qt6 ApplicationWindow vs Windows - what is better to use ?
-
Hello all!
There are two components 'Window' and 'ApplicationWindow'. What is better to use with Qt 6? Tested on default application. In following this https://doc.qt.io/qt-6.8/qml-qtquick-controls-applicationwindow.html there are only difference in adding some additional elements inside of the 'Window' component.
-
When using 'ApplicationWindow' for MacOS all is working perfectly, but when iOS/iOSSimulator have this kind of troubles:
qrc:/Main.qml:17:1: module "QtQuick.Controls" is not installedWhen using 'ApplicationWindow' with Android application just crashed when starting. Only manual adding to CMake 'QuickControls2' solving this problem for iOS/Android
-
When using 'ApplicationWindow' for MacOS all is working perfectly, but when iOS/iOSSimulator have this kind of troubles:
qrc:/Main.qml:17:1: module "QtQuick.Controls" is not installedWhen using 'ApplicationWindow' with Android application just crashed when starting. Only manual adding to CMake 'QuickControls2' solving this problem for iOS/Android
@bogong said in Qt6 ApplicationWindow vs Windows - what is better to use ?:
When using 'ApplicationWindow' for MacOS all is working perfectly, but when iOS/iOSSimulator have this kind of troubles:
qrc:/Main.qml:17:1: module "QtQuick.Controls" is not installedWhen using 'ApplicationWindow' with Android application just crashed when starting. Only manual adding to CMake 'QuickControls2' solving this problem for iOS/Android
Hi,
I would say it's deployment issue that you should report.
Before doing that, please test with the latest version of Qt available (your link hints that you are using 6.8).As for which one to use, the only answer is: it depends on your application design. There's no one size fits all option. If you don't need the features from ApplicationWindow then simply use a Window.
-
I suspect that you didn't link to
Qt6::QuickControls2.ApplicationWindowhandles font and style palette propagation, have an additional footer and header property and have a special Overlay item to acts as a parent for popups.
I use it overWindowusually. -
Hello all!
There are two components 'Window' and 'ApplicationWindow'. What is better to use with Qt 6? Tested on default application. In following this https://doc.qt.io/qt-6.8/qml-qtquick-controls-applicationwindow.html there are only difference in adding some additional elements inside of the 'Window' component.
@bogong said in Qt6 ApplicationWindow vs Windows - what is better to use ?:
There are two components 'Window' and 'ApplicationWindow'. What is better to use with Qt 6?
I would say it's comparable to
QWidgetvs.QMainWindow
The latter with its integratedQMenuBar,QToolBarandQStatusBarsupport, whereas the former provides a more "plain" Widget (or QML Control / Window in your case)