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. Gui app does not exit on mac.

Gui app does not exit on mac.

Scheduled Pinned Locked Moved General and Desktop
11 Posts 2 Posters 2.1k 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.
  • P Offline
    P Offline
    patrickkidd
    wrote on last edited by
    #1

    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://alaskafamilysystems.com/

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      0
      • P Offline
        P Offline
        patrickkidd
        wrote on last edited by
        #3

        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://alaskafamilysystems.com/

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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
          0
          • P Offline
            P Offline
            patrickkidd
            wrote on last edited by
            #5

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

            https://alaskafamilysystems.com/

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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
              0
              • P Offline
                P Offline
                patrickkidd
                wrote on last edited by
                #7

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

                https://alaskafamilysystems.com/

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  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
                  0
                  • P Offline
                    P Offline
                    patrickkidd
                    wrote on last edited by
                    #9

                    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://alaskafamilysystems.com/

                    1 Reply Last reply
                    0
                    • P Offline
                      P Offline
                      patrickkidd
                      wrote on last edited by
                      #10

                      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://alaskafamilysystems.com/

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        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
                        0

                        • Login

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