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

Pre-edit text in TextInput element does not display if input field is empty

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.0.0
    • 5.0.0
    • GUI: Text handling
    • None
    • 2f9608630b9899dda3242f031fa4a4295d0a2e22

    Description

      Run the following application:

      import QtQuick 2.0
      
      Rectangle {
          width: 640
          height: 480
      
          TextInput {
              anchors.centerIn: parent
              width: parent.width
          }
      }
      

      Choose an input method with pre-edit text and input some text. The text will not display until you commit it. Do the same, and the input will display correctly. If you initialize the input field with some text, the pre-edit text will display on the first try, regardless of whether it's prepended or appended to the existing contents, so this is only reproducible when the text input is completely empty.

      Attachments

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

        Activity

          People

            jiang Jiang Jiang
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes