1 year ago
#281145
Gene
How to Save Color with QColordialog in Qt C++
Can someone help with this problem,I am using the QColorDialog in QT c++ ad can't figure out how to save the selected color so it would be the same color after an app is shutdown and then restarted. I have included my slot here if it would help, the app work fine as long as you shut it off and restart it.
void MainWindow::on_actionBackGround_Color_triggered()
{ QColor color=QColorDialog::getColor(color);
if (color.isValid()) {
setPalette(QPalette(color));
{
{
Thanks for and help,it's been awhile.
savechanges
0 Answers
Your Answer