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

QML TextField behavior has changed on Windows at least on Japanese predictive text

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.3, 6.7.3
    • None
    • Windows 11, tried with Qt 5.15.17, Qt 6.6.3, Qt 6.7.3
    • Windows

    Description

      On Windows with Japanese predictive input enabled (Hiragana selected), the behavior of TextField (or TextEdit?) has changed, probably between Qt 5.x and Qt 6.x.

      I have a simple test program with QML as in attachment. If I enter Hiragana input in field1, I will get predictive input. Not selecting any value from the popup and moving focus to field2:

      Qt 5.15.17:

      • field1 is cleared from the predictive input
      • A stationary cursor remains visible in the field though (possibly another bug?)
      • onEditingFinished handler says preeditText is what I entered and text is empty as it should because the field is cleared

      Qt 6.6.3

      • field1 is NOT cleared from the predictive input
      • A stationary cursor remains visible in the field though (as with Qt 5.x)
      • onEditingFinished handler says preeditText is what I entered and text is empty, although it likely should contain the text entered

      So, perhaps with Qt 6.x either predicted text should continue to be cleared or when in onEditingFinished, text property should already contain the preeditText. And in any case the cursor should probably disappear when focus has moved away.

      Attachments

        1. main-1.qml
          0.9 kB
          Heikki Haveri
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            heikkih Heikki Haveri
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes