Qt Forum

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

    Qt Academy Launch in California!

    Gui app does not exit on mac.

    General and Desktop
    2
    11
    1827
    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.
    • P
      patrickkidd last edited by

      With a fresh install of Qt-5.2 and a Widgets gui application, the app bundle won't exit when I quit from the dock, or close the window. QApplication::exec() is returning correctly, but some thread is locking the app so that I have to force quit it. This does not happen for a vanilla Qt Quick app.

      It's been several years since I used Qt and I remember there begin a flag you have to set somewhere for this, but can't find anything googling for it.

      Thanks!

      https://vedanamedia.com/

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

        Hi and welcome to devnet,

        What version of OS X are you running ?

        What kind of application are you running ? Multithreaded ? Got any mutex ?

        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
        • P
          patrickkidd last edited by

          The app is just the vanilla qt GUI app as created by the qt creator in 5.2 release. No modifications, no thread code, nothing.

          https://vedanamedia.com/

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

            What version of OS X and Xcode are you using ?

            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
            • P
              patrickkidd last edited by

              Sorry, I am using the latest for both. Thanks for your patience.

              https://vedanamedia.com/

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

                Do you mean Mavericks and Xcode 5.1 ?

                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
                • P
                  patrickkidd last edited by

                  Boy I'm really losing my programmer etiquette here. Mavericks 10.9.2 and Xcode 5.1.1

                  https://vedanamedia.com/

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

                    How do you know that exec() is returning correctly ?

                    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
                    • P
                      patrickkidd last edited by

                      Because I set a breakpoint after it. Then in the thread stack there was a bunch of qt code that was blocking on a thread wait condition

                      https://vedanamedia.com/

                      1 Reply Last reply Reply Quote 0
                      • P
                        patrickkidd last edited by

                        I just created another couple of vanilla test projects and it seemed to exit OK. I'm not seeing any changes between it and my broken project but I'm willing to chalk it up to chance, or some mistake on my part.

                        https://vedanamedia.com/

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

                          Perhaps a configuration file (thinking of your.project.pro.user) that had something broken in it.

                          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
                          • First post
                            Last post