[英]qmake ui header file location
I modified my c++ Qt4 project to that all the sources are in an src directory. 我将c ++ Qt4项目修改为所有源都在src目录中。 All the temporary file are stored in a build directory and the target file in a bin directory. 所有临时文件都存储在构建目录中,目标文件存储在bin目录中。 Here a snapshot of my .pro file 这是我的.pro文件的快照
SOURCES += src/*.cpp
HEADERS += src/*.h
FORMS += gui/myguy.ui
INCLUDEPATH += src/ # Source directory to be included
DESTDIR = bin # Target file directory
OBJECTS_DIR = build # Intermediate object files directory
MOC_DIR = build # Intermediate moc files directory
my problem is the following. 我的问题是以下。 When I build the application qt automatically transforms ui_mygui.h. 当我构建应用程序时,qt会自动转换ui_mygui.h。 This is by default stored on the root of the project. 默认情况下,它存储在项目的根目录下。 How can I specify the location where I want this file to be put? 如何指定要放置此文件的位置?
Thanks 谢谢
Use the UI_DIR
variable. 使用UI_DIR
变量。 This is where those files will be generated. 这些文件将在此处生成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.