# HG changeset patch # User Heiko Schlittermann (JUMPER) # Date 1327098930 -3600 # Node ID d7895b83384a10e42b4abfe4193569806aa739b2 # Parent 4d50ed1fc9e65beaf7044613307041fb60a32478 added qt-hello example diff -r 4d50ed1fc9e6 -r d7895b83384a qt-hello/main.cc --- /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 +#include +#include +#include +#include + +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(); +} diff -r 4d50ed1fc9e6 -r d7895b83384a qt-hello/qt-hello.pro --- /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