Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Textfield in Android show text always in uppercase but when I print in console it is in lowercase
QtWS25 Last Chance

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

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 1 Posters 239 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.
  • A Offline
    A Offline
    AMOL
    wrote on 14 Jun 2020, 15:57 last edited by
    #1

    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......

    A 1 Reply Last reply 16 Jun 2020, 06:41
    0
    • A AMOL
      14 Jun 2020, 15:57

      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......

      A Offline
      A Offline
      AMOL
      wrote on 16 Jun 2020, 06:41 last edited by
      #2

      @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................

      1 Reply Last reply
      0

      1/2

      14 Jun 2020, 15:57

      • Login

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