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

Allow empty specialValueText in QAbstractSpinBox

    XMLWordPrintable

Details

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

    Description

      Special value text functionality is now switched on by providing non-empty specialValueText. In most situations the most appropriate specialValueText is actually an empty string. But it cannot be used since that would disable the special value text functionality altogether.

      It is therefore needed to use some artifical special text for this purpose, like " ", "null" or "-" to represent null value in the spinbox. But then, it is too difficult for the user to set this value because: 1) the user has to know what text to enter; 2) the user has to write the special text. Just deleting the present value would be more convenient for the user.

      It is also not possible to use QLineEdit::placeholderText functionality in a spinbox because the spinbox cannnot be empty even if it logically contains an empty value.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            petr.broz Petr Brož
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes