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

Docs: Improve cursorPosition description in TextInput and TextEdit docs

    XMLWordPrintable

Details

    • 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)

    Description

      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?

      Attachments

        1. variousTE.qml
          1 kB
        2. variousTI.qml
          2 kB

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: