Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-131934

QColorLuminancePicker slider track become visible if widget background is changed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.15.12
    • None
    • Windows

      Using C++.

      If all the widget's backgrounds are changed by using the following qss:

      QWidget:window {
          background-color: green;
      } 

      Then a slider track becomes visible at the right side of QColorDialog for the internal class QColorLuminancePicker. It seems to be sticking to the Qt default background:

       

      Without the style modification for comparison:

      A workaround is to add this to the qss:

      QColorLuminancePicker {
          background: green;
      } 

      As QColorLuminancePicker is a private internal not documented class, I think it should not be needed to do this.

        1. GreenColorDialog.png
          47 kB
          Nicolas Delaporte
        2. DefaultColorDialog.png
          47 kB
          Nicolas Delaporte
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            nicolasdelaporte Nicolas Delaporte
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes