1.6.1.  #include: Finding Header Files

[ fromfile: qmake.xml id: findingheaders ]

  #include <headerFile>
  #include "headerFile"
  #include "path/to/headerFile"
  
[Tip]qmake -r

Some project files are SUBDIRS, which means they run both qmake and make recursively down the tree. If you have an old Makefile from a previous version of Qt and want to force all Makefiles to be regenerated immediately, invoke qmake -r, to recursively generate all Makefiles down the file tree.

[Tip]Tip

In general, it is a good idea to #include non-Qt header files after Qt header files. Because Qt defines many symbols (for the compiler and for the preprocessor) this can make it easier to avoid (or locate) name clashes.

For more information about the preprocessor and how it is used, see Section C.2.