Hi. I've got a problem. When compile project files:
Maker.cpp
Qt Code:
  1. #include <QtGui>
  2.  
  3. #include "maker.h"
  4.  
  5. MainWindow::MainWindow(QMainWindow *parent)
  6. : QMainWindow(parent)
  7. {
  8. ui.setupUi(this);
  9. connect(actionAbout, SIGNAL(triggered()), this, SLOT(abcziom()));
  10. }
  11. void MainWindow::abcziom()
  12.  
  13. {
  14. QMessageBox::warning(this, tr("About Application"),
  15. tr("The <b>Application</b> example demonstrates how to "
  16. "write modern GUI applications using Qt, with a menu bar, "
  17. "toolbars, and a status bar."));
  18.  
  19. }
To copy to clipboard, switch view to plain text mode 
Maker.h
Qt Code:
  1. #ifndef MAKER_H
  2. #define MAKER_H
  3.  
  4. #include "ui_maker.h"
  5.  
  6.  
  7. class MainWindow : public QMainWindow, public Ui::MainWindow
  8. {
  9. Q_OBJECT
  10.  
  11. public:
  12. MainWindow(QMainWindow *parent = 0);
  13.  
  14. private slots:
  15.  
  16. void abcziom();
  17.  
  18. private:
  19.  
  20. Ui::MainWindow ui;
  21. };
  22.  
  23. #endif
To copy to clipboard, switch view to plain text mode 
ui_Maker.h, resource.qrc, and main.cpp:
Qt Code:
  1. #include <QApplication>
  2. #include <QPlastiqueStyle>
  3. #include "maker.h"
  4.  
  5. int main(int argc, char *argv[])
  6. {
  7. QApplication::setStyle ( new QPlastiqueStyle() );
  8. QApplication app(argc, argv);
  9. MainWindow MainWindow;
  10. MainWindow.show();
  11. return app.exec();
  12. }
To copy to clipboard, switch view to plain text mode 
everything is ok, is builds the executable, but when I try to run it, there appear well known window - this is translation -
There appeared error with Test.exe application and it will be shut down. Sorry for problems. (the Polish version is: Wystąpił problem z aplikacją Test.exe i zostanie ona zamknięta. Przepraszamy za kłopoty.)
What is wrong? I tried to compile it twice, but without success. Regards