Hi,
I have downloaded boundle windows package including qt 5.6.2, qt creator 4.0.3 and MingW 4.9.2 (qt-opensource-windows-x86-mingw492-5.6.2.exe)
The I started a simple qt application

dialog.cpp
Qt Code:
  1. #include "dialog.h"
  2. #include "ui_dialog.h"
  3.  
  4. Dialog::Dialog(QWidget *parent) :
  5. QDialog(parent),
  6. ui(new Ui::Dialog)
  7. {
  8. ui->setupUi(this);
  9. }
  10.  
  11. Dialog::~Dialog()
  12. {
  13. delete ui;
  14. }
To copy to clipboard, switch view to plain text mode 

dialog.h
Qt Code:
  1. #ifndef DIALOG_H
  2. #define DIALOG_H
  3.  
  4. #include <QDialog>
  5.  
  6. namespace Ui {
  7. class Dialog;
  8. }
  9.  
  10. class Dialog : public QDialog
  11. {
  12. Q_OBJECT
  13.  
  14. public:
  15. explicit Dialog(QWidget *parent = 0);
  16. ~Dialog();
  17.  
  18. private:
  19. Ui::Dialog *ui;
  20. };
  21.  
  22. #endif // DIALOG_H
To copy to clipboard, switch view to plain text mode 

main.cpp
Qt Code:
  1. #include "dialog.h"
  2. #include <QApplication>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6. QApplication a(argc, argv);
  7. Dialog w;
  8. w.show();
  9.  
  10. return a.exec();
  11. }
To copy to clipboard, switch view to plain text mode 

dialog.ui
Qt Code:
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>Dialog</class>
  4. <widget class="QDialog" name="Dialog">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>400</width>
  10. <height>300</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string>Dialog</string>
  15. </property>
  16. <layout class="QGridLayout" name="gridLayout">
  17. <item row="0" column="0">
  18. <widget class="QPushButton" name="pushButton">
  19. <property name="text">
  20. <string>PushButton</string>
  21. </property>
  22. </widget>
  23. </item>
  24. </layout>
  25. </widget>
  26. <layoutdefault spacing="6" margin="11"/>
  27. <resources/>
  28. <connections/>
  29. </ui>
To copy to clipboard, switch view to plain text mode 

it compiles, but when I try to Run it fails with this message:
Qt Code:
  1. Starting C:\Documents and Settings\massimiliano\progs\build-test-Desktop_Qt_5_6_2_MinGW_32bit-Debug\debug\test.exe...
  2. The program has unexpectedly finished.
  3. C:\Documents and Settings\massimiliano\progs\build-test-Desktop_Qt_5_6_2_MinGW_32bit-Debug\debug\test.exe crashed.
To copy to clipboard, switch view to plain text mode 

and when I try to debug I have this error:
qt-error.jpg

What is wrong with my setup?

best regards
max