I have problems with the small Qt 5.0.1 program on Mac OS X 10.8. (I have not tested other platforms yet.)
I am running an external Mac OS X program with this line of code:
QDesktopServices::openUrl(QUrl::fromLocalFile(fullpath));
Where fullpath contains the application path like:
/Users/schube/QTWorkspace/HelloWorld-build-Desktop_Qt_5_0_1_clang_64bit-Debug/HelloWorld.app/Contents/MacOS/../../../Aptus.app
( Aptus.app is a random application that I chose, it can be any application. I put it in this way for testing purposes).
The application starts correctly, but always in the background; or at least outside the Finder window. Really weird!
How to make a new running application go to the fore?
source share