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

Suggestion: add the ability to reverse the button effects on QAbstractSpinBox/QSpinBox

    XMLWordPrintable

Details

    Description

      It would be useful to have the ability to reverse the button effects on a QAbstractSpinBox so that pushing the up arrow button or up arrow key would decrease the value and pushing the down arrow button or down arrow key would increase the value. As things stand now, QSpinBox explicitly prevents setting the singleStep property to a negative value or setting the maximum to be larger than the minimum.

      While one can certainly reimplement stepBy() in a subclass to achieve this behavior, ideally this ability should be put (maybe a boolean property like "reversed" or something) on QAbstractSpinBox so that it would work for all QAbstractSpinBox subclasses. Then, for example, the meaning of stepUp() and stepDown() would be reversed, and stepBy() would not need to be changed.

      Attachments

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

        Activity

          People

            monsen Marius Bugge Monsen
            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