How to use virtual keyboard on Raspberry Pi 4
Unsolved
General and Desktop
-
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:
@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.