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

TextEdit alignment not working as expected

    XMLWordPrintable

Details

    Description

      Running the code below, I would expect the cursor to stay in the bottom right
      corner of the blue box and the text to grow left and up as I type.

      import Qt 4.7
      
      Rectangle {
          id: whiteRect
          width: 640; height: 480;
      
          Rectangle {
              anchors.centerIn: parent
              width: 400
              height: 300;
              color: "blue"
      
              TextEdit {
                      anchors.fill: parent
                      font.pixelSize: 30
                      color: "white"
                      horizontalAlignment: TextEdit.AlignRight
                      verticalAlignment: TextEdit.AlignBottom
                      wrapMode: TextEdit.WordWrap
              }
          }
      }
      

      Attachments

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

        Activity

          People

            wallison Warwick Allison (closed Nokia identity) (Inactive)
            mathiasm Mathias Malmqvist
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes