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

Slider in 'Fusion' style drawn wrong if disabled

    XMLWordPrintable

Details

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

    Description

      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.

       

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes