if you use ui you don't have to create a new button. ui->pushButton is already a full button, so there is no need to recreate one. Simply use your
QObject::connect(ui
->pushButton,
SIGNAL(clicked
()),
this,
SLOT(connection
()));
QObject::connect(ui->pushButton,SIGNAL(clicked()),this,SLOT(connection()));
To copy to clipboard, switch view to plain text mode
and skip all the
bouton->setCheckable(true);
QPushButton *bouton = new QPushButton("Connecter Wiimote",ui->pushButton);
bouton->setCheckable(true);
To copy to clipboard, switch view to plain text mode
things...
Lykurg
Bookmarks