I was experimenting with the QColorDialog, and it works, but when I selected "Named Colors" in the comboBox that's in the dialog, I get a segmentation fault. All the other selections are fine. The color dialog looks different that the Qt4 doc I found, this isn't even in the picture of the dialog it shows. I'm using Qt4.6. What is this "Named Colors" selection, and how do I use it (or disable it)?

(I was just trying to get the #rrggbb string, and it does work, except for the above problem.)


QColor color = QColorDialog::getColor(Qt::black, this);
if(color.isValid())
{
textColorName = color.name();
QMessageBox::information(this, "Text Color", "You selected "+textColorName);
}