Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QQuickView or QQmlApplicationEngine or QQuickWidget
Qt 6.11 is out! See what's new in the release blog

QQuickView or QQmlApplicationEngine or QQuickWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 2.1k Views 1 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.
  • W Offline
    W Offline
    Wuzi
    wrote on last edited by
    #1

    Hello,

    I tried to write a small application to learn about qml and qt, but I found many implementations how I can load the qml file. So I would like to ask what are the advantages and disadvantages of this class?

    Wuzi

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      QQuickWidget is to be used if you want to integrate a QtQuick GUI in a widget based application.
      QQuickView is a convenience class to setup a view from a QML file
      QQmlApplicationEngine can be used for QML only stuff and does not automatically create a root window so you must place your visual elements inside a Window object in your QML code if you want to show something.

      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
      3
      • W Offline
        W Offline
        Wuzi
        wrote on last edited by
        #3

        Hi SGaist,

        thank you for your clear answear!

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You're welcome !

          If it's enough, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

          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
          • Q Offline
            Q Offline
            QQuickView or
            wrote on last edited by
            #5

            i use ui->quickWidget->setSource(QUrl("qrc:/qml/userslist.qml"))
            qml file

            Rectangle{
            ....
            Drawer {
            id: drawer
            width: 0.66 * parent.width
            height: parent.height
            }
            ...
            }
            it does not work

            1 Reply Last reply
            1
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Not enough information

              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

              • Login

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