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

QLineEdit::sizeHint() could be smarter when maxLength is set.

    XMLWordPrintable

Details

    Description

      QLineEdit::sizeHint() could return the minimal size to fit the content when maxLength is set.

      It could be a problem if maxLenght() is very large. If it is not considered acceptable to change QLineEdit::sizeHint(), we could provide a simple way to compute the best size for a certain content.

      Setting the width of the line edit to fit the content is a common request of our users.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              poulain Benjamin Poulain (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes