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

TextEdit: caret isn't clipped

    XMLWordPrintable

Details

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

    Description

      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"
              }
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes