Permalink
Browse files

partie 1

  • Loading branch information...
1 parent 3d2f5ed commit e766b93e04f5b5100223dab063df869c09e13cf1 @mattgu74 committed Apr 20, 2012
Showing with 22 additions and 0 deletions.
  1. +6 −0 TP3/TP3/TP3.pro
  2. +16 −0 TP3/TP3/main.cpp
View
6 TP3/TP3/TP3.pro
@@ -0,0 +1,6 @@
+SOURCES += \
+ main.cpp \
+ element.cpp
+
+HEADERS += \
+ element.h
View
16 TP3/TP3/main.cpp
@@ -0,0 +1,16 @@
+#include <QApplication>
+#include <QPushButton>
+
+int main(int argc, char *argv[])
+{
+ QApplication mainApp(argc, argv);
+
+ QPushButton btnHello("Bonjour!", 0);
+ btnHello.resize(200, 60);
+ mainApp.setActiveWindow(&btnHello);
+ btnHello.show();
+
+ QObject::connect(&btnHello,SIGNAL(clicked()), &mainApp, SLOT(quit()));
+
+ return mainApp.exec();
+}

0 comments on commit e766b93

Please sign in to comment.