Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Textfield in Android show text always in uppercase but when I print in console it is in lowercase



  • Hello Experts,
    Below is my code for textfield,
    When I run this code on Windows textfield Disply in lowercase when I print in console it is in lowercase and ,
    problem is when I run same code on Android mobile If I input in textfield it will always display text in uppercase on UI in but when I print in console it is in lowercase,
    I just need to change this display text in lowercase please help me

    TextField {
    id: root

        width: 231
        height: 100
        font.pointSize: 14
        font.capitalization: Font.AllLowercase
        font.family: "fontawesome"
        leftPadding: 30
        inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhNoPredictiveText | Qt.ImhLowercaseOnly
        background: Item {
            Rectangle {
                width: parent.width - 10
                height: 1
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.bottom: parent.bottom
                
            }
        }
    
    }
    

    Thanks in advance......



  • @AMOL said in Textfield in Android show text always in uppercase but when I print in console it is in lowercase:

    Hello Experts,
    Below is my code for textfield,
    When I run this code on Windows textfield Disply in lowercase when I print in console it is in lowercase and ,
    problem is when I run same code on Android mobile If I input in textfield it will always display text in uppercase on UI in but when I print in console it is in lowercase,
    I just need to change this display text in lowercase please help me

    TextField {
    id: root

        width: 231
        height: 100
        font.pointSize: 14
        font.capitalization: Font.AllLowercase
        font.family: "fontawesome"
        leftPadding: 30
        inputMethodHints: Qt.ImhNoAutoUppercase | Qt.ImhNoPredictiveText | Qt.ImhLowercaseOnly
        background: Item {
            Rectangle {
                width: parent.width - 10
                height: 1
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.bottom: parent.bottom
                
            }
        }
    
    }
    

    Thanks in advance......

    Anyone there need urgent help................


Log in to reply