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

QDeclarativeTextInput::positionAt() should have 'CursorPosition' parameter

XMLWordPrintable

      Currently the positionAt() method uses a 'QTextLine::CursorBetweenCharacters' parameter to get the character position at the given 'X' position. This is useful if you want to place the cursor, but for manipulating characters, it is less so and even gives odd results in various situations.
      Please consider adding a CursorPosition parameter that defaults to 'QTextLine::CursorBetweenCharacters', but which can be specified as 'QTextLine::CursorOnCharacter' when needed, in a similar way to QTextLine::xToCursor() which it eventually calls.

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

            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            davidmaxwaterman Max Waterman
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes