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. Insert characters with accentuation in inputText

Insert characters with accentuation in inputText

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 249 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.
  • R Offline
    R Offline
    RDUser
    wrote on last edited by RDUser
    #1

    I need to insert characters with accent like É, ã or â when my app works in portuguese but when I try to insert (e.g. " a + ~") it doesn't happen

    Code example:

    import QtQuick 2.15
    import QtQuick.Window 2.15
    import QtQuick.VirtualKeyboard 2.15
    import QtQuick 2.7
    import QtQuick.Controls 2.0
    import QtQuick.Layouts 1.0
    
    Window {
        id: window
        width: 640
        height: 480
        visible: true
        title: qsTr("Hello World")
    
        Column {
            id: cls
            anchors.fill: parent
            anchors.margins: 10
            spacing: 3
    
            Rectangle {
                id: frame
                width: parent.width
                height: 25
                border.color: green
                border.width: 1
    
                TextInput {
                    id: txtInput
                    anchors.fill: parent
                    anchors.margins: 4
                }
            }
        }
    }
    
    1 Reply Last reply
    0
    • R Offline
      R Offline
      RDUser
      wrote on last edited by
      #2

      The problem is caused because I'm using Qt Virtual Keyboard but I don't know how to avoid it.

      1 Reply Last reply
      0

      • Login

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