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

QAbstractSlider::setRange ( int min, int max ) should be a slot

    XMLWordPrintable

Details

    • 87975f88ce72b803fe3fa982540b940c2e205009

    Description

      QAbstractSlider defines a signal rangeChanged ( int min, int max )
      and a public method setRange ( int min, int max )

      Unforturnately, setRange ( int min, int max ) is not declared as a slot, so it is not possible to synchronize two sliders/Scrollbars by connecting them like this:

      connect(scrollbar1, SIGNAL(rangeChanged ( int , int)), scrollbar2, SLOT(setRange(int, int)));

      The other slider property 'value' has the signal slot duo:
      SLOT setValue ( int )
      SIGNAL valueChanged ( int value )

      I would expect the range property to have the same.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            j.neuhaus J N
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes