Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    General and Desktop
    2
    5
    1103
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Moonlight-Angel last edited by

      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 ! :)

      No keyboard found. Press any key to continue.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

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

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • M
          Moonlight-Angel last edited by

          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.

          No keyboard found. Press any key to continue.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

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

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • M
              Moonlight-Angel last edited by

              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.

              No keyboard found. Press any key to continue.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post