> 
>> My goal is to make a Qt project runnable from any user's Linux home
>> directory (no hard coded paths). 
>> I tried setting the "working directory setting" found under Project->Run
>> Settings->Running Executable->Working Directory?
> That your app depends on the working directory is the problem. Depending on 
> how (and on which OS) your app is started, the working directory will contain 
> all kind of interesting values. You should try to locate your data relative 
> to 
> e.g. QApplication::applicationDirPath(), or 
> QDesktopServices::storageLocation(). 


I am not sure I understand.  I am trying to make the Qt Creator project run 
settings paths relative (no hard-coded absolute paths ).  I want any Red Hat 
Enterprise Linux developer to be able to extract a project tarball to his home 
directory, open the Qt project file and be able to build, run, and debug from 
within Qt Creator without having to modify any Qt Creator project setings.  The 
problem is the Qt project "Working Directory" "Run Setting" seems to only 
accept hard-coded absolute paths.

You mean I can access Qt class static methods in the *Qt Creator* project run 
settings? Or are you saying it cannot be done and the best I can do is to use 
these static methods at run-time?

Thank you for your help,

-Ed
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to