Simple ColorDialog Qt Example: ColorDialog colorDialog; if(colorDialog.exec() == QDialog::Accepted) qDebug() << colorDialog.getColor(); //"#070"