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

Text that is wider than TextInput element doesn't get clipped by default

    XMLWordPrintable

Details

    Description

      Not sure if this regression from Qt Quick 1.0 is a bug or intentional. In Qt Quick 1.0 TextInput automatically clips text that doesn't fit it's dimensions like in the following example (see screenshots). In Qt Quick 2.0 clipping requires TextInput element's clip property to be set to true.

      import QtQuick 2.0
      
      Rectangle {
          width: 400; height: 200
          TextInput {
              width: 100; anchors.centerIn: parent
              text: "A lot of text written in such a small space"
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              martjone Martin Jones (closed Nokia identity) (Inactive)
              jpetrell Joona Petrell
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes