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

QColorLuminancePicker slider track become visible if widget background is changed

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes