[Interest] Capital letters with Qt Virtual Keyboard
Mitch Curtis
mitch.curtis at qt.io
Tue Jul 24 11:29:32 CEST 2018
> -----Original Message-----
> From: Interest <interest-bounces+mitch.curtis=qt.io at qt-project.org> On
> Behalf Of Luca Carlon
> Sent: Monday, 23 July 2018 7:48 PM
> To: <interest at qt-project.org> <interest at qt-project.org>
> Subject: [Interest] Capital letters with Qt Virtual Keyboard
>
> Hello! I wrote this simple code with the Qt Virtual Keyboard:
>
> import QtQuick 2.8
> import QtQuick.VirtualKeyboard 2.3
> Rectangle {
> width: 800
> height: 800
> TextInput {
> anchors.top: parent.top
> anchors.bottom: panel.top
> width: parent.width
> focus: true
> }
> InputPanel {
> id: panel
> anchors.left: parent.left
> anchors.right: parent.right
> anchors.bottom: parent.bottom
> }
> }
>
>
> What I notice is that the shift key is not enabled. However, it becomes
> enabled if I click on the TextInput. Is this the expected behavior? Is it possible
> to enable it automatically?
What do you mean by enable it automatically? What is the expected behaviour?
> Also, is there anything wrong in the sample above? When I click on the key
> that switches to the synbols I get a considerable amount of warnings:
>
> qrc:/QtQuick/VirtualKeyboard/content/styles/default/style.qml:66:9: QML
> Rectangle: Cannot anchor to an item that isn't a parent or sibling.
> qrc:/QtQuick/VirtualKeyboard/content/styles/default/style.qml:66:9: QML
> Rectangle: Cannot anchor to an item that isn't a parent or sibling.
> qrc:/QtQuick/VirtualKeyboard/content/styles/default/style.qml:66:9: QML
> Rectangle: Cannot anchor to an item that isn't a parent or sibling.
> qrc:/QtQuick/VirtualKeyboard/content/styles/default/style.qml:66:9: QML
> Rectangle: Cannot anchor to an item that isn't a parent or sibling.
> qrc:/QtQuick/VirtualKeyboard/content/styles/default/style.qml:66:9: QML
> Rectangle: Cannot anchor to an item that isn't a parent or sibling.
> qrc:/QtQuick/VirtualKeyboard/content/styles/default/style.qml:66:9: QML
> Rectangle: Cannot anchor to an item that isn't a parent or sibling.
> qrc:/QtQuick/VirtualKeyboard/content/styles/default/style.qml:66:9: QML
> Rectangle: Cannot anchor to an item that isn't a parent or sibling.
> qrc:/QtQuick/VirtualKeyboard/content/styles/default/style.qml:66:9: QML
> Rectangle: Cannot anchor to an item that isn't a parent or sibling.
> qrc:/QtQuick/VirtualKeyboard/content/styles/default/style.qml:66:9: QML
> Rectangle: Cannot anchor to an item that isn't a parent or sibling.
> qrc:/QtQuick/VirtualKeyboard/content/styles/default/style.qml:66:9: QML
> Rectangle: Cannot anchor to an item that isn't a parent or sibling.
> qrc:/QtQuick/VirtualKeyboard/content/styles/default/style.qml:135:9: QML
> Rectangle: Cannot anchor to an item that isn't a parent or sibling.
> [...]
>
> The result seems correct, but I guess those warnings mean I did something
> wrong.
Which Qt version are you using? See https://bugreports.qt.io/browse/QTBUG-67677 for the warnings. I'm unable to reproduce them with the 5.9 branch, so it could be that they've been indirectly fixed somehow. There are fixes for the warnings in 5.11.1 and dev.
> Thank you!
>
> Luca
More information about the Interest
mailing list