Hi!

I'm very new to QT and i have a question. I created a project and set the "Working directory" for debug via project settings to a path that is not the build-directory.

Is it possible to execute the code that follows so that it uses the "working directory":

QString dir;
QString styleSheet;
QString filename;
QFile styleFile;

dir = qApp->applicationDirPath();


qApp->applicationDirPath(); should point to my working directory. Is it somehow possible?

How would you deal with that? Use a build-dir and for execution a working directory?


Thank you very much!