Unsolved Qt Quick and window handle
-
Hi,
for an external library i need to set a HWND.With QWidgets i used to do:
QWidget *myWidget = new QWidget(); HWND monitorHandle = reinterpret_cast<HWND>(myWidget->winId()); int monitorID = CreateLiveViewW(monitorHandle);
Now i want to use this with Qt Quick. Can i get the HWD from a quick item like a rectangle?
-
Hi
Im not into QML but are you sure a
simple Rectangle will have a HWND? -
@mrjj
No i'm definitively not sure. It was just my first thought.
But you can fill the rectangle with a color, so maybe it is also possible to fill that rectangle with that live-view image.