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

No QQuickTextInput::inputMethodQuery and inputMethodHints is not taken account

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.3.0 Beta1, 5.3.0
    • Quick: Controls 1
    • Windows 7 64bits
      Qt Android for Windows 32-bit 5.3.0-beta1 (Enterprise)
      Device : Samsung Galaxy Note 3 (4.3), Samsung Galaxy S3 (4.3)
    • Android

    Description

      When Clicking on a TextField, I get these warnings (see below for example code):

      W/IInputConnectionWrapper(15832): getTextBeforeCursor on inactive InputConnection
      W/IInputConnectionWrapper(15832): getCursorCapsMode on inactive InputConnection
      W/IInputConnectionWrapper(15832): getCursorCapsMode on inactive InputConnection
      W/Qt      (15832): kernel\qmetaobject.cpp:1458 (static bool QMetaObject::invokeMethod(QObject*, const char*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument)): QMetaObject::invokeMethod: No such method QQuickTextInput::inputMethodQuery(Qt::InputMethodQuery,QVariant)
      

      Next, when clicking on the Email TextField, the keyboard's layout don't change (it's not the email layout).
      If you dismiss the keyboard by clicking on "Done" and you click on directly on the email TextField, the keyboard's layout is good.

      -Create a hello world project in QtQuick Application
      -Copy the example in the main.qml

      import QtQuick 2.2
      import QtQuick.Window 2.1
      import QtQuick.Controls 1.1
      
      Window {
          id: window1
          visible: true
          width: 360
          height: 360
          color:"black"
          Column
          {
              anchors.verticalCenter: parent.verticalCenter
              anchors.horizontalCenter: parent.horizontalCenter
              TextField {
                  id: g_nameText
                  text: ""
              }
              TextField {
                  id: g_emailText
                  inputMethodHints:Qt.ImhEmailCharactersOnly
              }
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              tvete Paul Olav Tvete
              julienw Julien W
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes