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

specialValueText for spin box's maximum value, too

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 5.10.0
    • None

    Description

      Right now, QAbstractSpinBox allows to set a text to be shown if the spin box's value equals the minimum via the setSpecialValueText function. For a number of applications, a special value for the maximum would be useful, too. For example, think of a spin box to limit the network bandwidth. A potential special value for the minimum would be "off" or "idle", but for the maximum you would like to have "unlimited". Of course, the developer would have to check if the spin box's value equals the maximum (reasonably set) and disable all limits.

      As introducing a new special value text function may require renaming the existing one (e.g. setMinimumValueText and setMaximumValueText), I suggest this feature for Qt6.

      This suggestion is related to Qt bug 541.

      Attachments

        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
            tfischer Thomas Fischer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes