User Tools

Site Tools


qt:pro_files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
qt:pro_files [2010/12/07 20:17] – [Additional Qt libraries] mithatqt:pro_files [2010/12/08 19:44] (current) mithat
Line 51: Line 51:
 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.
  
-===== Adding files =====+===== Adding source code files =====
 To add the files ''{YourClass}.h'' and ''{YourClass}.cpp'' to your project, replace To add the files ''{YourClass}.h'' and ''{YourClass}.cpp'' to your project, replace
 <code>SOURCES += main.cpp</code> with <code>SOURCES += main.cpp</code> with
Line 59: Line 59:
 HEADERS = {YourClass}.h           HEADERS = {YourClass}.h          
 </code> </code>
 +
 +===== Adding resource collection files =====
 +For a resource to be compiled into the binary the *.qrc file must be mentioned in the .pro file:
 +<code>RESOURCES = foo.qrc</code>
  
 ===== Additional Qt libraries ===== ===== Additional Qt libraries =====
qt/pro_files.1291753037.txt.gz · Last modified: 2010/12/07 20:17 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki