当前位置:网站首页>QT learning 05 introduction to QT creator project
QT learning 05 introduction to QT creator project
2022-06-30 00:00:00 【A little black sauce】
Qt Study 05 Qt Creator Project introduction
Qt Creator engineering management
Qt Creator With The way of the project Manage the source code
One Qt Creator The project includes Different types of The file of :
.pro Project description file ( important )
.pro.user User profile ( Is not important )
.h The header file
.cpp Source file
.ui Interface description file
Resource file ( picture , Audio , etc. )
.pro Project description file
.pro The basic composition of the project description document
# - Comment start character
QT - Module declaration
TARGET - Executable file name
TEMPLATE - Program template declaration ( Whether to generate dynamic library or executable file )
SOURCE - Source file declaration
HEADERS - Header file declaration
FORMS - See statement for interface document
RC_FILE - Resource file declaration
.pro Advanced variables in the project description file
INCLUDEPATH - Header file search path
CONFIG - Set the configuration and compilation options for the project
LIBS - Add third party library files
DEFINES - Define compilation macro
CONFIG To configure
CONFIG Used to set the project Configuration information and Compilation options
CONFIG Common options for
debug - structure debug Version of the executable
release - structure release Version of the executable
debug_and_release - At the same time build debug Version and release edition
warn_on - Output as many warning messages as possible
warn_off - Do not output warning messages
.pro The nature of the document is Qt Medium Makefile file !
.pro The nature of the document

Project documents
Generally speaking , The descriptions in the project file are Using relative paths
And the relative path is Relative to the project file itself for
Qt Creator take Project documents As Target file
Be careful :
1.Qt Creator When the project file is opened, a .pro.user file
2…pro.user The file contains some information related to Qt Related configuration information
3. When you need to move items between different computers , It is suggested to delete .pro.user file
Concepts in engineering
structure (build)
For All files are compiled , Final Generate executable
Debug edition
Sure Program debugging Build version of
The executable program contains debugging information , The operation efficiency is not high
Release edition
Final release Build this version of the application
No debug information , High operational efficiency
Summary
- Qt Creator With The way of the project Manage the source code
- One Qt Creator The project includes Different types of The file of
- .pro File is used to To configure and organization Information about the whole project
- .pro When you file Qt Platform independent in Makefile file
t Creator With The way of the project Manage the source code - One Qt Creator The project includes Different types of The file of
- .pro File is used to To configure and organization Information about the whole project
- .pro When you file Qt Platform independent in Makefile file
- Qt Creator Provides Necessary for development Of Fast and efficient The function of
边栏推荐
- AI chief architect 9- huxiaoguang, propeller model library and industry application
- 设置安全组、域名备案、申请ssl证书
- Shell positional parameter variables and predefined variables
- Inspiration collection · evaluation of creative writing software: flomo, obsidian memo, napkin, flowus
- Cacti settings for spin polling
- Overseas digital authentication service provider advance AI was selected into the "2022 brand sea Service Market Research Report" of equalocean
- Leetcode (633) -- sum of squares
- Fund valuation, expenses and accounting
- 6.28 problem solving
- Gradle连载7-配置签名
猜你喜欢

这个简单的小功能,半年为我们产研团队省下213个小时

Leetcode(680)——验证回文字符串 Ⅱ

Matplotlib plt Hist() parameter explanation

Construction of module 5 of actual combat Battalion

@Scheduled annotation pit, I stepped on it for you

Et la tarte aux framboises 4? Quels sont les jeux possibles?

Why is JSX syntax so popular?

QPainter的使用入门:绘制象棋界面

Inspiration collection · evaluation of creative writing software: flomo, obsidian memo, napkin, flowus

Leetcode (76) -- Minimum Covering substring
随机推荐
Shell positional parameter variables and predefined variables
Et la tarte aux framboises 4? Quels sont les jeux possibles?
HTAP x cloud native: tidb accelerates the release of data value and realizes data agility
Machine learning: the concept and application of VC dimension
Cacti关于spine轮询的设置
RRDTOOL draws MRTG log data
Jetpack之Room的使用,结合Flow
Shell operator
How about counting Berry Pie 4? What are the possible ways to play?
Cacti最大监控数测试
Halcon practical: design idea of solder joint detection
What is flush software? Is it safe to open an account online?
I wonder if I can open an account today? In addition, is it safe to open an account online now?
Sword finger offer 13 Range of motion of robot
除子
这个简单的小功能,半年为我们产研团队省下213个小时
After working in the software development industry for six years, I changed my ideas in those years
What is online account opening? In addition, is it safe to open a mobile account?
LC:最大子数组和
6.28日刷题题解