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

TextInput.openSoftwareInputPanel() cannot be opened from Component.onCompleted

    XMLWordPrintable

Details

    Description

      Software input panel cannot be opened via onCompleted. Code below should open input panel on startup. Opening it via some later event like a touch event works as it should. This should be fixed or documentation updated.

      main.qml
      import QtQuick 1.1
      Rectangle {
          width: 360
          height: 360
          TextInput {
              id: input
              text: qsTr("Hello World")
              anchors.centerIn: parent
              Component.onCompleted: {
                  input.forceActiveFocus();
                  input.openSoftwareInputPanel();
              }
          }
      }
      
      

      Originally reported in https://bugreports.qt.nokia.com/browse/QTCOMPONENTS-1162

      Attachments

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

        Activity

          People

            qtsymbase Qt Base for Symbian Team
            mifagerl Mikael Fagerlund
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes