Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
After Qt>=5.9, QWidget addWidget QML ApplicationWindow can cause interface drift. Does anyone know how to solve this problem?
like Ulf Hermann said, use a pure QQuickWidget it should solve the issue for your case
It does not working. QWidget cannot addwidget
Like this :
@WoHowLearn did you add
QT += quickwidgets
to your project file ? And QQuickWidgets was not imported, as far as I can tell
The program can run,
but there is no way to embed a qquickwidget into a qwidget ,
because the root of QML is
So that's the only way I can do it.
ok, fair enough, what feature of ApplicationWindow is important for you, that you couldn't replace the rootItem with, say a Rectangle?
WoHowLearn last edited by