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

Implement deselect() function for TextInput and TextEdit elements

    XMLWordPrintable

Details

    • 22daf9fbdfaa859db6414d39d9354e7d46f63005, 6a36f1f6299980cd0338009cb31e2a36cd40e44f

    Description

      QML is style independent technology and doesn't come with ready-made finger-usable text selection controls. Luckily those are easy to implement using MouseArea, TextEdit and TextInput functions select(), selectWord and selectAll, and by creating your own selection handles using QML.

      Clearing active selection is something all text selection controls need to implement. Currently to do that from QML you basically call "select(cursorPosition, cursorPosition)" with the parameters start and end position having the same value. For a convenience a new function deselect(), already available for C++ editors like QLineEdit, should be introduced.

      Attachments

        Issue Links

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

          Activity

            People

              jpetrell Joona Petrell
              jpetrell Joona Petrell
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes