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

QLineEdit::resizeToContent() wanted

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • 4.4.3
    • Widgets: Layout
    • None

    Description

      It would be useful to have a function similar to "void QTreeView::resizeColumnToContents ( int column )" for QLineEdit.
      i.e. QLineEdit::resizeToContent(). It should also leave some place for the cursor.
      Or a function "QSize QLineEdit::sizeForString( const QString& string, bool includeCursorAtEnd ) const".

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            engvolds Morten Engvoldsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes