qt-hello/main.cc
changeset 3 d7895b83384a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/qt-hello/main.cc	Fri Jan 20 23:35:30 2012 +0100
@@ -0,0 +1,24 @@
+#include <QApplication>
+#include <QPushButton>
+#include <QWidget>
+#include <QLabel>
+#include <QVBoxLayout>
+
+int main(int argc, char **argv)
+{
+    QApplication app(argc, argv);
+    QWidget  mw;
+    QVBoxLayout  layout;
+    QLabel	 label("Hallo, scheint zu funktionieren");
+    QPushButton  done("Done");
+
+    mw.setLayout(&layout);
+    layout.addWidget(&label);
+    layout.addWidget(&done);
+
+    done.connect(&done, SIGNAL(clicked()), &app, SLOT(quit()));
+
+
+    mw.show();
+    app.exec();
+}