qtvirtualkeyboard

How to change Qt 5.7 virtual keyboard layout/locale

那年仲夏 提交于 2019-12-14 03:45:37
问题 I'm writing a small windows application with Qt 5.7 using qml. For my project I would need to be able to change the virtual keyboard layout. But After hours of reading the docs and trying various things I'm still unable to achieve it. My Qt installation is default windows installation and it is up to date (just checked if there would be updates). As you can see here, the keyboard uses en_EN locale despite that my OS locale is fi_FI. And also notice that Language Change button is in disabled

Resize qtvirtualkeyboard according to QObject

妖精的绣舞 提交于 2019-12-11 08:43:14
问题 I'm using the qml qtvirtual keyboard: https://github.com/qt/qtvirtualkeyboard I'm trying to "connect" it with the rest of my Qt app which is based on widgets. For example, when I click on a QLineEdit, I want the keyboard to show up and to act like a physical one in the app context. To do so, I installed what's in qtvirtualkeyboard/src (qmake && make && make install) and here is my main.cpp : #include <QQuickView> #include <QApplication> #include <QQmlEngine> #include <QQmlContext> int main

qml virtual keyboard: keyboardDesignWidth and Height

非 Y 不嫁゛ 提交于 2019-12-11 06:08:44
问题 I am looking at the QML Style for the virtual keyboard. What is the purpose of keyboardDesignWidth and Height? I seem to have a lot of trouble managing the width and height of the keyboard and can never set it to how I want it. Setting the keyboardHeight and Width directly also does not help much. The issue is that the component background size is somehow computed behind the scenes. So, even when I have the keyboard buttons and size how I want, the extraneous background covers some of my

QML Virtual Keyboard Add New Layout

我只是一个虾纸丫 提交于 2019-12-04 19:51:10
I use qt qml 5.7 on Yocto project for raspberry pi. My project need virtual keyboard for Turkish language. QT Virtual Keyboard has no support Turkish language so i want to create my custom layout. I add my project example layout codes from here as name "myCustomLayout.qml". And I run my virtual keyboard display function by following codes. import QtQuick 2.5 import QtQuick.VirtualKeyboard 2.1 import QtQuick.Controls 2.0 InputPanel { id: inputPanel visible: Qt.inputMethod.visible height:main.height/4 y:main.height - height x:main.width/8 width: main.width*6/8 focus: true } When I run the

Hide key from Qt Virtual keyboard

蹲街弑〆低调 提交于 2019-12-01 11:04:49
Is there a way to hide the language selection key from the virtual keyboard without use a custom layout? I was able to hide the language key with a workaround: property var keyboardLayout: inputPanel.keyboard.layout function findChildByProperty(parent, propertyName, propertyValue, compareCb) { var obj = null if (parent === null) return null var children = parent.children for (var i = 0; i < children.length; i++) { obj = children[i] if (obj.hasOwnProperty(propertyName)) { if (compareCb !== null) { if (compareCb(obj[propertyName], propertyValue)) break } else if (obj[propertyName] ===