Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
HWND on Win32 API to Qt widget
delio last edited by
How to convert HWND on Win32 API to Qt widget?
I know that I have to use QWidget::winId().
but I don't know how to write it
Please give me an example.
ScottR last edited by
If you are asking how to find the QWidget which has HWND x,
QWidget* theWidget = QWidget::find((WId)x);
If you are asking how to find the HWND associated with a QWidget x,
HWND foo = x.effectiveWinId ();