Gui app does not exit on mac.
-
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 ?
-
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 ?
-
Sorry, I am using the latest for both. Thanks for your patience.
-
Do you mean Mavericks and Xcode 5.1 ?
-
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 ?
-
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
-
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.