Possible Duplicate:
What is the difference between #include <filename> and #include “filename”?
What is the difference between angle bracket < > and double quotes " " while including header files in C++?
I mean which files are supposed to be included using eg: #include <QPushButton> and which files are to be included using eg: #include "MyFile.h"???
It’s compiler dependent. That said, in general using
"prioritizes headers in the current working directory over system headers.<>usually is used for system headers. From to the specification (Section 6.10.2):So on most compilers, using the
""first checks your local directory, and if it doesn’t find a match then moves on to check the system paths. Using<>starts the search with system headers.