1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
M_face = new vue(&M_matrice);
M_droite = new vue(&M_matrice, 1, 0);
M_layout = new QGridLayout;
M_layout->addWidget(M_droite, 2, 4);
M_layout->addWidget(new QPushButton("One"), 0, 0, 4, 4);
M_layout->addWidget(M_face, 2, 2);
QObject::connect( M_face, SIGNAL( clic(int, int)), &M_matrice, SLOT( clic(int, int)));
QObject::connect( M_face, SIGNAL( declic(int, int)), &M_matrice, SLOT( declic(int, int)));
QObject::connect(&M_matrice, SIGNAL(nouveauPoint(int, int, int)), M_face, SLOT(posePoint(int, int, int)));
QObject::connect( M_droite, SIGNAL( clic(int, int)), &M_matrice, SLOT( clic(int, int)));
QObject::connect( M_droite, SIGNAL( declic(int, int)), &M_matrice, SLOT( declic(int, int)));
QObject::connect(&M_matrice, SIGNAL(nouveauPoint(int, int, int)), M_droite, SLOT(posePoint(int, int, int)));
setLayout(M_layout); |