what is the difference between declaring a class

this way:
Qt Code:
  1. #include <QDialog>
  2. #include <QHash>
To copy to clipboard, switch view to plain text mode 

or, this way:
Qt Code:
  1. class QFile;
  2. class QFtp;
  3. class QLabel;
  4. class QLineEdit;
  5. class QTreeWidget;
To copy to clipboard, switch view to plain text mode