在 Qt Creator 中更改默认工作目录 [英] Change default working directory in Qt Creator

查看:63
本文介绍了在 Qt Creator 中更改默认工作目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将 Qt Creator 中的默认工作目录更改为指定路径?或者是否可以在 .pro 文件中设置工作目录?

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:我知道QDir::setCurrent,但正在寻找其他方法

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

推荐答案

转到项目"选项卡并在构建和运行"中查找您正在使用的工具包中的运行选项卡

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"

这篇关于在 Qt Creator 中更改默认工作目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆