connect(ui->SetModelColor, &QPushButton::clicked, this, [this](){ QColor color = QColorDialog::getColor(Qt::white, this, "Choose color"); dou