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

TextInput does not emit selectedTextChanged() when selection is dismissed by InputMethodEvent

    XMLWordPrintable

Details

    • c3669d24b498aa0661ade5ed7465260788f629b5

    Description

      Symbian hw keyboard sends InputMethodEvent when arrow key pressed and text selected instead of sending KeyEvent. QLineControl::processInputMethodEvent() method does not emit selectionChanged() signal even selection start & end have changed. Thus TextInput does not emit selectedTextChanged(). Selection handle & cursor visibility on Qt-components Symbian TextField follows selectedText. Since signal is not emitted handles remains visible and cursor invisible after arrow key press.

      Attachment has some basic deselect auto test for TextInput & TextEdit. TextEdit tests pass just fine but TextInput's fails also on desktop environment. Also how many times selectionStart/EndChanged signals are emitted differs quite a lot between TextEdit & TextInput

      Attachments

        1. autotests.patch
          10 kB
          Samuel Nevala
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            samimeri Sami Merila (Inactive)
            samuelnevala Samuel Nevala
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes