Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QColorDialog showing blank on linux [solved]



  • 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?



  • I have solved this by passing the QColorDialog::Don'tUseNativeDialog flag.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What Linux distribution are you using ?


Log in to reply