Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QColorDialog showing blank on linux [solved]
rwillard last edited by rwillard
I am attempting to show a colour dialog to select a font colour. When I invoke a dialog on linux with the following:
QColor pickedColour = QColorDialog::getColor();
it shows a blank dialog. This only occurs under linux... when I run the same code on a windows box, the dialog shows the colour wheel correctly. I have also run it on OSX and it works there as well.
Has anyone run into this before?
rwillard last edited by
I have solved this by passing the QColorDialog::Don'tUseNativeDialog flag.
Hi and welcome to devnet,
What Linux distribution are you using ?