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

QSlider::initStyleOption doesn't fill QStyleOptionSlider.activeSubControls field

    XMLWordPrintable

Details

    • 4bee9cdc0ac4bbee7f061e8f6050d704032f6d0f (qt/qtbase/dev) b455e05f41c89ff3387973c8feac8463b9873d8d (qt/qtbase/6.2) 03fdef133e213677c542c33ae372f7ca2631e61f (qt/qtbase/6.2.2), 4db9fdf58 (dev), 531bb7785 (6.5)

    Description

      At the moment, if one calls QSlider::initStyleOption it doesn't fill activeSubControls, although it does that before paint inside paintEvent function.
      Is there any specific reason not to do so?
      I've changed this logic a bit as being shown in the attached patch file and it works fine.
      Please let me know if this is okay to change this function like this.

      P.S I came across this issue during custom paintEvent implementation there I was needed to know whenever slider handle is the active control.

      Attachments

        Issue Links

          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
              devfom Vasiliy Fomin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes