Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved][OS X] QDialog's first exec takes more time

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

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.3k Views
  • 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 Offline
    M Offline
    Moonlight-Angel
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • M Offline
        M Offline
        Moonlight-Angel
        wrote on last edited by
        #3

        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
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          0
          • M Offline
            M Offline
            Moonlight-Angel
            wrote on last edited by
            #5

            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
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved