Hello,

What kind of mechanisms do you people use for building context sensitive helps into Qt applications?

My idea was to create a single application wide shortcut (Qt::ApplicationShortcut). In the slot connected to the shortcut my plan was to act according to the QApplication::focusWidget(). Everything was working smooth until I noticed that modal dialogs prevent the shortcut from getting activated. The shortcut event gets lost somewhere in the event loop run by the modal dialog and the shortcut never gets activated. I would have expected that an application wide shortcut gets activated even when there's a modal dialog running it's own event loop.

Nevertheless, I have already reported the issue to TT. But now what I'm looking for is a decent enough temporary workaround. One not-so-good workaround would be to create a corresponding shortcut for each and every modal dialog. I really wanted to avoid sprinkling the help related code all over the project.

So, just curious, how do you people do it?