Gui app does not exit on mac.
-
wrote on 27 Apr 2014, 07:00 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!
-
Hi and welcome to devnet,
What version of OS X are you running ?
What kind of application are you running ? Multithreaded ? Got any mutex ?
-
wrote on 27 Apr 2014, 23:13 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.
-
What version of OS X and Xcode are you using ?
-
wrote on 28 Apr 2014, 07:47 last edited by
Sorry, I am using the latest for both. Thanks for your patience.
-
Do you mean Mavericks and Xcode 5.1 ?
-
wrote on 28 Apr 2014, 19:52 last edited by
Boy I'm really losing my programmer etiquette here. Mavericks 10.9.2 and Xcode 5.1.1
-
How do you know that exec() is returning correctly ?
-
wrote on 28 Apr 2014, 22:44 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
-
wrote on 29 Apr 2014, 00:15 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.
-
Perhaps a configuration file (thinking of your.project.pro.user) that had something broken in it.
9/11