Integrating qml to an existing qQWidget application
-
Hi,
I am new to Qt. I have an existing Qt Widgets desktop application. I have qml file for the UI structure. i know qml shall work with qtquick applications. But is there a way without much changing my existing code i could integrate qml to the qwidgets application? -
See https://doc.qt.io/qt-6/qquickwidget.html or https://doc.qt.io/qt-6/qquickview.html depending on your requirements.
-
i am using qt 5.12. It has more than 1 view. I am new to qml also. So can you tell me if i am correct, if i am using qml, all the controls should come in qml right, and on cpp functions can be called in qml and i am also using openGLWidgts, in qml what should be used?Is there a way i can keep the qwidgets as such without converting to qquickwidgets?
-
i am using qt 5.12. It has more than 1 view. I am new to qml also. So can you tell me if i am correct, if i am using qml, all the controls should come in qml right, and on cpp functions can be called in qml and i am also using openGLWidgts, in qml what should be used?Is there a way i can keep the qwidgets as such without converting to qquickwidgets?
@Parvathy_R Then replace the 6 with 5 in these URLs...