QQuickView or QQmlApplicationEngine or QQuickWidget

  • 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?


  • Lifetime Qt Champion


    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.

  • Hi SGaist,

    thank you for your clear answear!

  • Lifetime Qt Champion

    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 :)

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.