Finally solved, it appears that there is no cast overload defined for (HWND) operator on QObject. So the solution is to get the ID of the window, see code following.
// This is my QT window:
CWndMainImpl cMainWin;
// This comes from the W32 API:
SetParent((HWND)cMainWin.winId(), psHwnd);
cMainWin.show();
app.connect( &app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()) );
app.exec();
// This is my QT window:
CWndMainImpl cMainWin;
// This comes from the W32 API:
SetParent((HWND)cMainWin.winId(), psHwnd);
cMainWin.show();
app.connect( &app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()) );
app.exec();
To copy to clipboard, switch view to plain text mode
Bookmarks