[Qt-creator] Qt Build Settings can use $BUILDIR. Why not Project Run Settings?
Daniel Teske
daniel.teske at nokia.com
Thu May 6 14:16:35 CEST 2010
> 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().
daniel
More information about the Qt-creator-old
mailing list