I'm trying to show the keyboard when the view loads and the TextInput has focus.
TextInput {
id: textInput
focus: true
}
I thought the keyboard would show up automatically since the text input has focus. But it doesn't.
So I tried sending this event to the view, but it doesn't show the keyboard on the first load. Please note that I'm loading this qml dynamically using a QML Loader on the first load. The subsequent loads of this view, shows the keyboard as expected.
QE开发者_如何学Govent event(QEvent::RequestSoftwareInputPanel);
bool sent = QApplication::sendEvent(iView, &event);
See this discussion. virtual keyboard does not appear in QML-based application on Nokia 5230
Try to bring the software input panel with the use of Component.onLoaded:{ }.
精彩评论