1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#include "taclasslib.h"
#include <QApplication>
#include <QPushButton>
//#include <QGridLayout>
//#include <QWidget>
int main(int argc,char ** argv)
{ QApplication app(argc,argv) ;
QLineEdit * lignemots = new QLineEdit ;
QPushButton * bouton = new QPushButton("Validation") ;
Taclasslib objet ;
QLabel * label = new QLabel ;
objet.initialisation() ;
lignemots->show() ;
bouton->show() ;
label->setFixedSize(400,250) ;
label->show() ;
objet.ajusteWidgets(lignemots,label) ;
QObject::connect(bouton,SIGNAL(clicked()),&objet,SLOT(unefonction()) ) ;
app.exec() ;
return 0 ;
} |