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

QSlider can get valueChanged signal before sliderPressed

    XMLWordPrintable

Details

    Description

      QSlider can get the valueChanged signal before sliderPressed.

      This happens when pressing outside the slider thumb, so that it moves in a big jump.
      It would perhaps be expected that sliderPressed was emitted before the valueChanged signal.

      When pressing on top of the slider thumb, and then moving the slider thumb the signals are emitted in the order of: sliderPressed, sliderMoved, valueChanged is emitted.

      It would perhaps be expected that these signals were emitted in a more consistent way.

      A practical case for the use of sliderPressed would be to record the previous value of the slider before the value was changed when valueChanged is emitted. This is not possible to do by using the proposed signals. Currrently it can be done by using events instead.

      Attachments

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

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes