Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. TextField::inputMethodHints no longer works as expected in QT 6.7.2
Forum Updated to NodeBB v4.3 + New Features

TextField::inputMethodHints no longer works as expected in QT 6.7.2

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 217 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SheepS Offline
    SheepS Offline
    Sheep
    wrote on last edited by
    #1

    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
    88186ed2-6c13-4ea6-b156-63e4ee4402c2-qemu-system-x86_64_rJBqmFNyFB.png

    but if i run the same code in qt 6.7.2, i dont get the numeric pad i wanted as shown below..

    0cc8c022-32c9-4db9-beee-d48e37027a5b-qemu-system-x86_64_a3U53pPvR0.png

    How can i get to dispay a numeric pad in Qt 6.7.2?

    1 Reply Last reply
    1
    • A Offline
      A Offline
      Anumas
      wrote on last edited by
      #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

      Say hello to a bright day.-

      Anumas.

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved