Alecs
Alecs

Reputation: 2316

Change default working directory in 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

Upvotes: 12

Views: 15418

Answers (2)

cprlkleg
cprlkleg

Reputation: 453

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.

Upvotes: 4

ratchet freak
ratchet freak

Reputation: 48176

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"

Upvotes: 12

Related Questions