maybe it could be easier if you give us some code.

anyway, if "QWidget: Must construct a QApplication before a QPaintDevice" is sent, it mostly means, that you didn't construct a QApplication.

did you write a main file with contents similar to this:
Qt Code:
  1. #include <QApplication>
  2. #include "MainWindow.h"
  3.  
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. int exec;
  8.  
  9. QApplication app(argc, argv);
  10.  
  11.  
  12. MainWindow mainWindow("Test");
  13. mainWindow.show();
  14.  
  15. exec = app.exec();
  16. return exec;
  17. }
To copy to clipboard, switch view to plain text mode 

sry for my bad english!