Skip to content

Commit

Permalink
partie 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgu74 committed Apr 20, 2012
1 parent 3d2f5ed commit e766b93
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions TP3/TP3/TP3.pro
@@ -0,0 +1,6 @@
SOURCES += \
main.cpp \
element.cpp

HEADERS += \
element.h
16 changes: 16 additions & 0 deletions 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.