Important: Please read the Qt Code of Conduct -

[Solved][OS X] QDialog's first exec takes more time

  • Hi all,

    I'm pretty new to Qt and would have some explanation about QDialog's first exec.
    I have a QMainWindow and a QAction which launches a QDialog window.

    The first time I trigger the QAction from the menu, it takes about 2 seconds to show the window (the main window is still responsive during the waiting).
    The next times I trigger the action, the dialog shows up immediately. It seems like the QDialog has the be initialized first to be fully operational.

    For example, I have a QDialog window and a QMessageBox which is fired when I quit the application.
    If I launch the QDialog first, the message box shows up immediately, and vice versa. Otherwise, I have to wait for the dialog or the message box to show up.

    Has someone an explanation and - maybe - a way to fix this ?

    Thanks for you help ! :)

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You should add which version of Qt you are using as well as Xcode and OS X version

  • Thanks for the reply.

    I'm using Qt 5.2.1 with Clang compiler.
    I have XCode version 5.1.1 (5B1008).
    I'm using OS X 10.9.2 (13C64).

    Hope this helps :D.

  • Lifetime Qt Champion

    Can you test the latest version of Qt 5.3 to see if you still have this issue ?

  • I tested with the 5.3.0 RC version freshly released and it works just fine.
    By the way it fixed another little problem with the raise function.

    Thank you for your help !
    I'll stick with the RC until the final 5.3.0 version comes out.

Log in to reply