[Qt-creator] QDir::currentPath() different when run from QtCreator?

Liam Staskawicz liam at makingthings.com
Mon Jun 15 20:44:19 CEST 2009


Hiya - I'm finding that when I run my app on OS X from within  
QtCreator, the QDir::currentPath() is set as the path of the  
executable all the way down in the application bundle (myproject.app/ 
Contents/MacOS/myproject) whereas when the project is run normally  
(just double clicked) the currentPath() is set to the top level bundle  
location.

Is it recommended to simply make some affordances in my code to  
account for whether it's being run in QtCreator, or is there some  
other way to resolve this?

Thanks!

Liam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090615/4f13bc39/attachment.html 


More information about the Qt-creator-old mailing list