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

Slider in 'Fusion' style drawn wrong if disabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.8.1
    • Widgets: Styles
    • None
    • Windows

      With 'Fusion' style, a disabled QSlider is drawn like it is enabled.

      You can test this with the gallery example (examples/widgets/gallery), where you can set the style to 'Fusion' and disable the widgets.
      See the attached screenshot below.

      The distinction simply seems to be missing in qfusionstyle.cpp.
      I attach a quick patch (slider_fusion_patch.diff), which solves the problem by don't drawing the groove blue and with a gradient, if the widget isn't in an enabled state.

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            tpochep Timur Pocheptsov
            bbc131 Björn Bissinger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes