Qt 6.11 is out! See what's new in the release
blog
win: can't trap WM_ENTER/EXITMENULOOP?
-
in the documentation here, it indicates i can get a message when the menu bar starts to be browsed, and another when the browsing is completed.
this is exactly what i need (the purpose is unrelated to this post).
So in my
QMainWindowderived class, i override thenativeEvent()method, like so:bool QBrowserWindow::nativeEvent( const QByteArray& eventType, void *messageP, qintptr *resultP) { bool handledB(false); if (eventType == kWindowsEventType_GENERIC) { MSG& msg(*(MSG *)messageP); switch (msg.message) { default: { // nothing else } break; case WM_ENTERMENULOOP: { Log("start menu browsing"); SuspendTableUpdates(true); } break; case WM_EXITMENULOOP: { Log("end menu browsing"); SuspendTableUpdates(false); } break; } } return handledB; }However, those messages are never sent :(
Any idea why not?