[Interest] Strange problem where exec() of dialogs returns immediately
Nikos Chantziaras
realnc at gmail.com
Sun Mar 11 15:51:52 CET 2012
On 11/03/12 16:32, Diego Schulz wrote:
> On Sat, Mar 10, 2012 at 3:15 PM, Nikos Chantziaras<realnc at gmail.com> wrote:
>> On 10/03/12 17:59, Thiago Macieira wrote:
>>>
>>> Please provide us a compileable testcase.
>>
>>
>> I was able to reproduce this with a minimal application. I'm attaching it.
>> It just consists of minimal QApplication and QMainWindow subclasses. The
>> latter overrides closeEvent() in order to pop-up a confirmation dialog that
>> will demonstrate the problem. The former has a main() member function that
>> is invoked from the real main() function of the program using
>> MetaObject::invokeMethod().
>>
>> To reproduce the bug, run it from the terminal, and then try to close the
>> window. You will notice that msgBox.exec() returns immediately.
>>
>> (Btw, this is on Gentoo Linux AMD64, using Qt 4.8.0.)
>
> Couldn't reproduce the behavior you described with your test app.
> Works exactly as is supposed to work.
> The dialog appears normally, exec() doesn't return immediately.
>
> BTW, this is Ubuntu 12.04 development branch. Running Qt 4.8.0.
I'm running KDE though (4.8.1). Maybe there's a difference in that.
I also tried a very old Qt (4.4.3) and it still happens with that one.
GCC version is 4.6.2 and glibc is 2.14.1.
More information about the Interest
mailing list