TextField::inputMethodHints no longer works as expected in QT 6.7.2
-
Greeting am kinda confused as to why this same code behaves differently with different qt versions
import QtQuick import QtQuick.Window import QtQuick.Controls Window { width: 640 height: 480 visible: true title: qsTr("Hello World") TextField { width: 200 height: 32 EnterKey.type: Qt.EnterKeySearch inputMethodHints: Qt.ImhDigitsOnly | Qt.ImhPreferNumbers } }
if i run this code in Qt 6.5.1, i get the expected results as shown in the screenhot below
but if i run the same code in qt 6.7.2, i dont get the numeric pad i wanted as shown below..
How can i get to dispay a numeric pad in Qt 6.7.2?
-
Hi, there's a bug in Qt 6.7.1 and 6.7.2 related to what you're experiencing:
inputMethodHints
are being ignored in Android. Lucky it's fixed in Qt 6.7.3 and 6.8 :)
https://bugreports.qt.io/browse/QTBUG-125410