In many of the Qt example headers it starts with something like this:

Qt Code:
  1. #ifndef MYCLASS_H
  2. #define MYCLASS_H
  3.  
  4. #include ....
  5.  
  6. class myClass : public QSomeClass
  7. {
  8. ...
  9. };
To copy to clipboard, switch view to plain text mode 

What is the meaning and purpouse of the MYCLASS_H definitions?
I have noticed that it does not compile if they don't have the same name as the class in the file.