Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    QColorDialog showing blank on linux [solved]

    General and Desktop
    qcolordialog linux
    2
    3
    1129
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      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?

      R 1 Reply Last reply Reply Quote 0
      • R
        rwillard @rwillard last edited by

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

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi and welcome to devnet,

          What Linux distribution are you using ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply Reply Quote 0
          • First post
            Last post