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

QML developers should be able to control when virtual input panel is shown

    XMLWordPrintable

Details

    • 4fe568ffb7a59909b0c72bed7da959fd36702f19

    Description

      By default input panel should be shown when editable TextEdit or TextInput gain focus (regardless on how the editor gain the focus), and closed when focus is lost, but developer should also have freedom to disable this behavior and implement a custom mechanism of their own if they want.

      Changes:

      • remove current input panel mechanism that show panel on mouse release, either in the first or second click depending on the platform
      • add boolean property autoShowInputPanelOnFocus that is true by default, if true input panel follows focus
      • add openSoftwareInputPanel() and closeSoftwareInputPanel() to manually control sip

      Example code:

      TextInput {
          id: textInput
          autoShowInputPanelOnFocus: false
          MouseArea {
              anchors.fill: textInput
              onPressed: openSoftwareInputPanel()
          }
      } 
      

      Attachments

        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