[Qt-interest] Qt Cocoa, QMenu and third party modal dialogs

Karel Bassez bassez.karel at gmail.com
Fri Nov 12 17:32:36 CET 2010


Hi,

I'm developing a Qt Cocoa application that hosts non-Qt, third party
plugins. Some of these plugins pop up a modal dialog during initialization
or loading of data. However this seems to interfere with Qt's event loop,
causing these modal dialogs to be unresponsive and unable to close. I've
tracked down the problem to Cocoa's abortModal basically not being executing
properly. This behavior often seems to be triggered by invoking these plugin
init/load functions from a popup QMenu. I've tried some tricks like invoking
the menu's actions using a queued connection, which helps in some cases, but
also sometimes causes a messagebox popped by such third party plugin to be
automatically clicked on its default button in some cases. So either it
freezes up or is a bit overzealous. My guess is that the modality of the
popup QMenu comes into play here, since doing these same actions from the
main application menu doesn't cause this behavior. Please mind that I do not
have any control over these plugins.

Thanks for any possible help,

Karel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101112/3d97c480/attachment.html 


More information about the Qt-interest-old mailing list