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

No QQuickTextInput::inputMethodQuery and inputMethodHints is not taken account

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.3.0 Beta1, 5.3.0
    • Fix Version/s: None
    • Component/s: Quick: Controls 1
    • Environment:
      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)
    • Platform/s:
      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

          For Gerrit Dashboard: QTBUG-38080
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              tvete Paul Olav Tvete
              Reporter:
              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