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

Cursor width is reported wrong for custom cursor delegate

    XMLWordPrintable

Details

    Description

      Following code returns 1 pixel cursor width even though 2 pixels would be expected:

      import QtQuick 2.0
      
      Rectangle {
          width: 200
          height: 300
      
          TextInput {
              x: 10; y: 10
              width: 180
              text: "cursor delegate test"
              cursorDelegate: Rectangle { width: 2; color: "blue" }
              onCursorPositionChanged: {
                  console.log("cursorRectangle.width: " + cursorRectangle.width)
                  console.log("cursorRectangle.height: " + cursorRectangle.height)
              }
          }
      }
      

      Attachments

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

        Activity

          People

            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            skananoj Sami Kananoja
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes