Qt5 C++ Creating Color Dialog (QColorDialog) #16

preview_player
Показать описание
Join Qt6 C++ GUI & Mobile App Development Course in Udemy

In this video iam going to show you how you can Create Color Dialog (QColorDialog) in Qt5 C++ we are going to use QColorDialog in this video for Creating of Color Dialog
Рекомендации по теме
Комментарии
Автор

Your videos are amazing and they have helped me a lot. But in this one I will point a correction.
The if(&ok) (time 4:50) makes no sense here, it will always be evaluated as a true statement. It has the same effect as:

QColor color = QColorDialog::getColor(Qt::yellow, this);


In this case, even if you click on CANCEL button it will make some changes...
What you can use instead is:

QColor color = QColorDialog::getColor(Qt::yellow, this);
if(color.isValid())
{

}

siciliajudice
visit shbcf.ru