I am trying to convert a Qt4 Application to Qt5. The only thing I couldn\'t figure out is how to get the HWND of a Widget. The program uses EcWin7 to show the progr
winId() worked for me on Qt 5.1 at least it has the same value when I'm using
bool Widget::nativeEvent(const QByteArray & eventType, void * message, long * result) { MSG* msg = reinterpret_cast(message); qDebug() << msg->hwnd; return false; }
and
qDebug() << winId();