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

QML: Documentation for TextInput's selectionStart property is wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.8.0
    • 4.7.3
    • Documentation
    • None
    • 63b4e11 354e285209531da86166d94ae5b0fbf749decbcd (qt/tqtc-qtdeclarative/5.12.0)

    Description

      In the documentation of QML's TextInput it says about the selectionStart property:

      "The cursor position before the first character in the current selection. Setting this and selectionEnd allows you to specify a selection in the text edit."

      This is wrong, as both the selectionStart and selectionEnd properties are read-only and can thus not be set. You have to use the select() method to set the selection.

      The same error exists in the documentation of the selectionEnd property.

      Attachments

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

        Activity

          People

            cvandonderen Casper van Donderen
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes