How to embed QWidget into QML?
-
Now I have a QML form, can I get it's WinId()?
or embed a QWidget?
Can Qt quick's rendering mechanism insert QWidget?
I don't know whether I can or can't.OS : Windows10 home 64bit
Qt Version: 5.10.1
Halcon Version: 18.05
Compiler Version: msvc2015 64bit
Hardware informations:
CPU: intel-core i7 6700HQ
GPU: nvdia GTX960MThanks you
-
Now I have a QML form, can I get it's WinId()? or embed a QWidget?
It is only supported it the other way round: Embedding a Qt Quick scene in QWidgets, either through QQuickView, QQuickWidget, or QWidget::createWindowContainer().
You can then call winId() on the created QWidget (though that has a performance impact; see also https://doc.qt.io/qt-5/qquickwidget.html#details).
-
Hi,
In addition to what @kkoehne wrote. You might be interested in KDAB's Declarative Widgets project.
Hope it helps
-