Reputation: 2316
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
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
Upvotes: 4
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