Qt::ApplicationModal and Dialogs designed with QtCreator

If you design a dialog with qtcreator, and do *not* tick the “modal” property, weird stuff happen.
The dialog will not be modal, even though you show it with exec(). It will report it self as Qt::ApplicationModal, but it wont actually be.

So, remember to tick that “modal” property in qtcreator/designer.

Sigh.

Advertisement

About madsdyd
Software developer, linux guy, hacker, all that.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.