I currently have a windows API that requires a HWND hParentWnd
. My question is how can I obtain HWND of a class derived from QMainWindow
?
You can use QWidget::effectiveWinId() or QWidget::winId(), this holds the HWND of the widget on Windows.
MainWindow w;
w.show();
HWND hWnd = (HWND) w.winId();
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments