qt:pro_files
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
qt:pro_files [2010/12/07 18:59] – [Enabling debug/release builds] mithat | qt:pro_files [2010/12/08 19:44] (current) – mithat | ||
---|---|---|---|
Line 2: | Line 2: | ||
===== Description ===== | ===== Description ===== | ||
- | For every Qt project there is a '' | + | For every Qt project there is a '' |
- | Typically a '' | + | The project's '' |
- | ===== Synopsis | + | ===== Syntax |
- | ==== Syntax ==== | + | |''#'' |
- | ''# | + | |'' |
- | '' | + | |'' |
- | '' | + | |'' |
- | '' | + | |'' |
- | '' | + | |
- | ==== File creation ==== | + | ===== File creation ===== |
+ | To create a '' | ||
- | The virgin | + | Running |
- | ###################################################################### | + | |
- | # Automatically generated by qmake (2.01a) Tue Dec 7 17:07:32 2010 | + | |
- | ###################################################################### | + | |
- | + | ||
- | TEMPLATE = subdirs | + | |
- | + | ||
- | # Directories | + | |
- | </ | + | |
- | + | ||
- | The virgin '' | + | |
###################################################################### | ###################################################################### | ||
# Automatically generated by qmake (2.01a) Tue Dec 7 17:15:59 2010 | # Automatically generated by qmake (2.01a) Tue Dec 7 17:15:59 2010 | ||
Line 40: | Line 30: | ||
</ | </ | ||
- | ==== Enabling debug/ | + | In contrast, here is a virgin '' |
+ | ###################################################################### | ||
+ | # Automatically generated by qmake (2.01a) Tue Dec 7 17:07:32 2010 | ||
+ | ###################################################################### | ||
+ | |||
+ | TEMPLATE = subdirs | ||
+ | |||
+ | # Directories | ||
+ | </ | ||
+ | ===== Enabling debug/ | ||
In Unix (including Linux and OS X) you can explicitly specify debug and release build options: | In Unix (including Linux and OS X) you can explicitly specify debug and release build options: | ||
<code bash> | <code bash> | ||
Line 51: | Line 50: | ||
I have not yet tested Windows, but the above config option is supposedly not needed and/or invalid in Windows. | I have not yet tested Windows, but the above config option is supposedly not needed and/or invalid in Windows. | ||
- | ==== Additions/tweaks | + | |
+ | ===== Adding source code files ===== | ||
+ | To add the files '' | ||
+ | < | ||
+ | < | ||
+ | SOURCES | ||
+ | {YourClass}.cpp | ||
+ | HEADERS | ||
+ | </ | ||
+ | |||
+ | ===== Adding resource collection files ===== | ||
+ | For a resource to be compiled into the binary the *.qrc file must be mentioned in the .pro file: | ||
+ | < | ||
+ | |||
+ | ===== Additional Qt libraries ===== | ||
+ | The QtCore and QtGUI libraries are included in all projects by default. To add additional Qt libraries to your project, include: | ||
+ | < | ||
+ | to remove: | ||
+ | < | ||
+ | where '' | ||
+ | |||
+ | The above names correspond to the QtNetwork, QtOpenGL, QtSQL, QtXML, and QtAssistantClient+Qt3Support libraries. | ||
+ | |||
+ | ===== Official documentation ===== | ||
+ | [[http:// |
qt/pro_files.1291748349.txt.gz · Last modified: 2010/12/07 18:59 by mithat