About using of QPrint and QPrintDialog
When we use QPrinter and QPrintDialog,we'd better put them in the predefine.
Such as
#ifndef QT_NO_PRINTER
...
QPrinter printer(QPrinter::HighResolution);
QPrintDialog dialog(&printer, this);
...
#endif
or the compiling process will not be successed because of no printer support.

