Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change default working directory in Qt Creator

Tags:

c++

qt

qt-creator

Is it possible to change the default Working directory in Qt Creator to specified path? Or is it possible to set Working directory in .pro file?

PS: I know about QDir::setCurrent, but searching for other ways

like image 475
Alecs Avatar asked Sep 12 '13 06:09

Alecs


2 Answers

Old question but, as there is no accepted answer and I recently found this question while looking:

Tools > Options > Build & Run > General > enter the desired Projects Directory location in the provided text box, or use Browse to locate it.

Note: assuming Qt Creator 4.3.1 based on Qt 5.9.1, Linux x86-64

Qt Creator Online Doc: Specifying Run Settings

Snapshot from doc.

like image 172
cprlkleg Avatar answered Oct 09 '22 13:10

cprlkleg


go to the projects tab and look in "build and run" for the run tab in the kit you are using

you will see the option there under "run"

like image 29
ratchet freak Avatar answered Oct 09 '22 13:10

ratchet freak