Could you compile and run the following test application?
Qt Code:
  1. // main.cpp
  2. #include <QtGui>
  3.  
  4. int main(int argc, char* argv[])
  5. {
  6. QApplication a(argc, argv);
  7. return d.exec();
  8. }
To copy to clipboard, switch view to plain text mode 
Does it look like you want?