[Interest] Strange problem where exec() of dialogs returns immediately
Thiago Macieira
thiago.macieira at intel.com
Sun Mar 11 17:33:59 CET 2012
On domingo, 11 de março de 2012 18.25.58, Nikos Chantziaras wrote:
> > But it is the creation of that message box that causes the problem, right?
> > Try removing the message box and you'll see it works again.
>
> Of course if I remove the message box the bug doesn't trigger, because
> the point of this is that exec() returns immediately. If I remove the
> message box, there's no call to exec().
>
> I'm reporting a problem with exec(), not the absence of one when not
> using exec()
It looks like you forgot to accept the close event and pass it to the
QMainWindow class. It will not close unless you let it close.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120311/2f49cd2d/attachment.sig>
More information about the Interest
mailing list