'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
Solution 1:[1]
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"
Solution 2:[2]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | ratchet freak |
Solution 2 | Scheff's Cat |