Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Qt6 ApplicationWindow vs Windows - what is better to use ?

Qt6 ApplicationWindow vs Windows - what is better to use ?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 4 Posters 117 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bogong
    wrote last edited by bogong
    #1

    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.

    Pl45m4P 1 Reply Last reply
    0
    • B Offline
      B Offline
      bogong
      wrote last edited by bogong
      #2

      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 installed
      

      When using 'ApplicationWindow' with Android application just crashed when starting. Only manual adding to CMake 'QuickControls2' solving this problem for iOS/Android

      SGaistS 1 Reply Last reply
      0
      • B Offline
        B Offline
        bogong
        wrote last edited by bogong
        #3

        When using 'Window' for all of platforms is working similar. Is it kind of feature and it's on purpose or it's the Qt bug?

        1 Reply Last reply
        0
        • B bogong

          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 installed
          

          When using 'ApplicationWindow' with Android application just crashed when starting. Only manual adding to CMake 'QuickControls2' solving this problem for iOS/Android

          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote last edited by
          #4

          @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 installed
          

          When 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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • GrecKoG Offline
            GrecKoG Offline
            GrecKo
            Qt Champions 2018
            wrote last edited by
            #5

            I suspect that you didn't link to Qt6::QuickControls2.

            ApplicationWindow handles 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 over Window usually.

            1 Reply Last reply
            0
            • B bogong

              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.

              Pl45m4P Offline
              Pl45m4P Offline
              Pl45m4
              wrote last edited by Pl45m4
              #6

              @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 QWidget vs. QMainWindow
              The latter with its integrated QMenuBar, QToolBar and QStatusBar support, whereas the former provides a more "plain" Widget (or QML Control / Window in your case)


              If debugging is the process of removing software bugs, then programming must be the process of putting them in.

              ~E. W. Dijkstra

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved