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

TextEdit: caret isn't clipped

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important P2: Important
    • None
    • 5.12.3, 6.2.0
    • None

      In the following code, the caret is 1 pixel outside of the green rectangle, and yet it is not affected by clipping.

      import QtQuick 2.12
      import QtQuick.Window 2.12
      
      Window {
          visible: true
          width: 640
          height: 480
      
          TextInput {
              width: 100
              height: 100
              focus: true
              text: "foo"
              font.pointSize: 100
              clip: true
              Rectangle {
                  anchors.fill: parent
                  color: "green"
              }
          }
      }
      

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jcelerier Jean-Michaƫl Celerier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes