PDA

View Full Version : QTVirtualKeyboard InputMethod issue



khalid80
3rd October 2016, 23:32
i am loading the keyboard.qml in QQuickView and then add it to a widget, but when I click on any key i got a warning input method is not set.
I looked at the documentation and it did not show how to create a custom input method, I want to override the keyEvent and write my logic there.

QQuickView view(QString("qrc:/QtQuick/VirtualKeyboard/content/components/Keyboard.qml"));
if (view.status() == QQuickView::Error)
return -1;
view.setResizeMode(QQuickView::SizeRootObjectToVie w);


QHBoxLayout *layout = new QHBoxLayout();
layout->addWidget(w1);

QWidget* w = new QWidget;
w->setLayout(layout);
w->show();

pvb
21st June 2017, 13:18
I am having the same problem with the QtVirtualKeyboard. I want to use it embedded into a QuickWidget. Did you succeed so far?

AlekseyK
14th May 2020, 04:50
I am having the same problem with the QtVirtualKeyboard. I want to use it embedded into a QuickWidget. Did you succeed so far?

Same bug: https://www.qtcentre.org/threads/69147-QT-Virtual-Keyboard?p=307973#post307973

Any solutions yet?!

AlekseyK
14th May 2020, 10:01
Solution is here: https://stackoverflow.com/a/61793240/630169