void Paramgen1::on_colorbutton_clicked(){ QColor couleur = QColorDialog::getColor(Qt::white, this); QPalette palette; palette.setColor(QPalette::Button, couleur); colorButton->setPalette(palette);}
void Paramgen1::on_pagecolorbutton_clicked(){ const QString COLOR_STYLE("QPushButton { background-color : %1; }"); QColor couleur = QColorDialog::getColor(Qt::white, this); pagecolorButton->setStyleSheet(COLOR_STYLE.arg(couleur.name()));}