equal
deleted
inserted
replaced
|
1 #include <QApplication> |
|
2 #include <QPushButton> |
|
3 #include <QWidget> |
|
4 #include <QLabel> |
|
5 #include <QVBoxLayout> |
|
6 |
|
7 int main(int argc, char **argv) |
|
8 { |
|
9 QApplication app(argc, argv); |
|
10 QWidget mw; |
|
11 QVBoxLayout layout; |
|
12 QLabel label("Hallo, scheint zu funktionieren"); |
|
13 QPushButton done("Done"); |
|
14 |
|
15 mw.setLayout(&layout); |
|
16 layout.addWidget(&label); |
|
17 layout.addWidget(&done); |
|
18 |
|
19 done.connect(&done, SIGNAL(clicked()), &app, SLOT(quit())); |
|
20 |
|
21 |
|
22 mw.show(); |
|
23 app.exec(); |
|
24 } |