Hi,
When writing QML and using text edit when focus the virtual keyboard is open
but it never hide
Please help
Thanks
Hi,
When writing QML and using text edit when focus the virtual keyboard is open
but it never hide
Please help
Thanks
Hi,
You can use Harmattan TextArea component to achieve that or the solution provided in the bug QTBUG-16282.. which I don't like at all.
More info can be found at:
https://bugreports.qt.nokia.com/browse/QTCOMPONENTS-402
That's another bug! Temporary workaround can be found here: https://bugs.webkit.org/show_bug.cgi?id=60161
Confirmed that this work around works in QML Qt
class EventFilter : public QObject
{
protected:
bool eventFilter(QObject *obj, QEvent *event) {
QInputContext *ic = qApp->inputContext();
if (ic) {
if (ic->focusWidget() == 0 && prevFocusWidget) {
QEvent closeSIPEvent(QEvent::CloseSoftwareInputPanel);
ic->filterEvent(&closeSIPEvent);
} else if (prevFocusWidget == 0 && ic->focusWidget()) {
QEvent openSIPEvent(QEvent::RequestSoftwareInputPanel);
ic->filterEvent(&openSIPEvent);
}
prevFocusWidget = ic->focusWidget();
}
return QObject::eventFilter(obj,event);
}
private:
QWidget *prevFocusWidget;
};
in my main.cpp
EventFilter ef;
QmlApplicationViewer viewer;
viewer.installEventFilter(&ef);
thanks