/
main.cpp
42 lines (32 loc) · 823 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include <QApplication>
#include "dialog.h"
#include "mainwindow.h"
//#include "whatsnew.h"
#include "connector.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
Dialog dialog;
//WhatsNew whatsnew;
cout << "starting ... " << endl;
if(dialog.exec()!=QDialog::Accepted) {
return 0;
}
cout << "creating main window ..." << endl;
MainWindow mainwindow;
cout << "creating main window ..." << endl;
mainwindow.show();
app.exec();
return 1;
/*QApplication app(argc, argv);
Dialog dialog;
MainWindow mainwindow;
//WhatsNew whatsnew;
cout << "starting ... " << endl;
if(dialog.exec()==QDialog::Accepted)
{
mainwindow.show();
return app.exec();
}
else return 0; */
}