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

Karel Bassez bassez.karel at gmail.com
Sat Nov 13 23:19:22 CET 2010


Bump?

On Fri, Nov 12, 2010 at 5:32 PM, Karel Bassez <bassez.karel at gmail.com>wrote:

> 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
>



-- 
Karel Bassez
Software Engineer
Vienna Symphonic Library GmbH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101113/cda948be/attachment.html 


More information about the Qt-interest-old mailing list