blob: 74f3c91ecd8586a2a0c90762bb27cf6a84647882 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <qapplication.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include "myobject.h"
#include "mydialog.h"
int main(int argc, char **argv)
{
QApplication app(argc, argv);
MyObject obj;
MyDialog dia;
app.setMainWidget( &dia );
dia.connect( dia.aButton, SIGNAL(clicked()), SLOT(close()) );
dia.show();
return app.exec();
}
|