How to use virtual keyboard on Raspberry Pi 4
-
@IknowQT said in How to use virtual keyboard on Raspberry Pi 4:
I tried what you did, the result is that once you click on lineedit made into widget the keyboard appears
...
It seems certain that the keyboard reacts when lineEdit is clicked.
Great! You now have Qt Virtual Keyboard working with a QWidget.
However, the keyboard appears within the quick screen UI area.
I'm not sure what you mean -- the keyboard is always meant to appear in the bottom half of the screen.
wrote on 20 Feb 2022, 23:14 last edited by IknowQTI popped up a UI called form and clicked lineEdit. The virtual keyboard appears, but it does not appear in the form widget, but in the quick view.
int main(int argc, char *argv[]) { qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); QApplication app(argc, argv); //QApplication app2 = static_cast<QApplication>(app); Form* f = new Form(); f->show(); QQuickView view(QString("qrc:/%2").arg(MAIN_QML)); if (view.status() == QQuickView::Error) return -1; view.setResizeMode(QQuickView::SizeRootObjectToView); view.show(); return app.exec(); }
-
I popped up a UI called form and clicked lineEdit. The virtual keyboard appears, but it does not appear in the form widget, but in the quick view.
int main(int argc, char *argv[]) { qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard")); QApplication app(argc, argv); //QApplication app2 = static_cast<QApplication>(app); Form* f = new Form(); f->show(); QQuickView view(QString("qrc:/%2").arg(MAIN_QML)); if (view.status() == QQuickView::Error) return -1; view.setResizeMode(QQuickView::SizeRootObjectToView); view.show(); return app.exec(); }
-
@IknowQT said in How to use virtual keyboard on Raspberry Pi 4:
I tried what you did, the result is that once you click on lineedit made into widget the keyboard appears
...
It seems certain that the keyboard reacts when lineEdit is clicked.
Great! You now have Qt Virtual Keyboard working with a QWidget.
However, the keyboard appears within the quick screen UI area.
I'm not sure what you mean -- the keyboard is always meant to appear in the bottom half of the screen.
-
@JKSH
If you don't know, answer that you don't know
I think it's a courtesy to anyone waiting for an answer.@IknowQT said in How to use virtual keyboard on Raspberry Pi 4:
@JKSH
If you don't know, answer that you don't know
I think it's a courtesy to anyone waiting for an answer.I'm sorry for keeping you waiting without a response.
I don't know why your virtual keyboard appears inside the Qt Quick window; I was planning to investigate but my RPi was deployed to another task.
-
wrote on 20 Apr 2022, 02:18 last edited by
Can anyone suggest a solution to this problem?
No one is interested. Is there no way or is it just being on the lookout?