如何在 QtCreator 中为项目创建文件夹或子目录? [英] How to create a folder or a subdirectory for a project in QtCreator?

查看:96
本文介绍了如何在 QtCreator 中为项目创建文件夹或子目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 Qt 中创建子目录和文件夹来组织我的代码.

I want to create subdirectories and folders to organise my code in Qt.

我试图在我的 shell/资源管理器中手动创建目录,但 Qt 无法识别它.

I tried to manually create the directory in my shell / explorer, but Qt does not recognize it.

推荐答案

在 QT Creator 3.1.x 之前,您可以右键单击您的项目 -> "添加新..." 并更改所需文件夹的路径.

Prior to QT Creator 3.1.x, you can right-click on your project -> "add new..." and change the path to the folder you want.

注意文件夹必须存在,Qt 不会为你创建它.

Be careful the folder must exist, Qt will not create it for you.

Qt 负责处理 .pro 文件中的路径.

Qt takes care of the path in your .pro file.

就是这样!

这篇关于如何在 QtCreator 中为项目创建文件夹或子目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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