QQuickView or QQmlApplicationEngine or QQuickWidget
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?
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.
thank you for your clear answear!
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 :)
i use ui->quickWidget->setSource(QUrl("qrc:/qml/userslist.qml"))
width: 0.66 * parent.width
it does not work
Not enough information