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

Docs: Improve cursorPosition description in TextInput and TextEdit docs

XMLWordPrintable

    • All
    • 79807f37b5 (qt/qtdeclarative/dev) 79807f37b5 (qt/tqtc-qtdeclarative/dev) d872223fdf (qt/qtdeclarative/6.3) 7b73e64ff6 (qt/qtdeclarative/6.2) 253922cc74 (qt/tqtc-qtdeclarative/5.15) 7b73e64ff6 (qt/tqtc-qtdeclarative/6.2) 55ac0e04f5 (qt/qtdeclarative/6.3.0)

      Currently, the documentation of the cursorPosition is very short; even too short for power users:

      The position of the cursor in the TextInput.

      Can't we be a little bit more specific as to which position of the TextInput it refers to? What are the measurement units of this int – bytes/characters(graphemes)/glyphs? How to use from JavaScript methods that operate on Strings? How does it correlate with text vs. preeditText vs. displayText properties?

        1. variousTE.qml
          1 kB
        2. variousTI.qml
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            javyas Jaishree Vyas
            ratijas ivan tkachenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: