Qt 6.12 LTS is out! See what's new in the release
blog
HWND on Win32 API to Qt widget
General and Desktop
2
Posts
2
Posters
3.6k
Views
1
Watching
-
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.
Thanks -
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 ();
@