Qt Quick and window handle
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?
Im not into QML but are you sure a
simple Rectangle will have a HWND?
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.