added qt-hello example hello-1.1
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Fri, 20 Jan 2012 23:35:30 +0100
changeset 3 d7895b83384a
parent 2 4d50ed1fc9e6
child 4 4ee6579fce50
added qt-hello example
qt-hello/main.cc
qt-hello/qt-hello.pro
--- /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();
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/qt-hello/qt-hello.pro	Fri Jan 20 23:35:30 2012 +0100
@@ -0,0 +1,11 @@
+######################################################################
+# Automatically generated by qmake (2.01a) Fri Jan 20 23:19:24 2012
+######################################################################
+
+TEMPLATE = app
+TARGET = 
+DEPENDPATH += .
+INCLUDEPATH += .
+
+# Input
+SOURCES += main.cc