-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.3, 6.0.1
-
-
916bf3025355653e16a4df209d4e08ec385a4f57 (qt/qtvirtualkeyboard/dev)
InputPanels defaults z value should be lower than max value, so it is not possible to set a z value for other components which are supposed to be shown over the InputPanel, like bottom bar.
5000 would be an acceptable value and it should be also documented.
The problem is here:
https://code.qt.io/cgit/qt/qtvirtualkeyboard.git/tree/src/virtualkeyboard/qvirtualkeyboardinputcontext_p.cpp?h=5.15.2#n224
void QVirtualKeyboardInputContextPrivate::registerInputPanel(QObject *inputPanel) { VIRTUALKEYBOARD_DEBUG() << "QVirtualKeyboardInputContextPrivate::registerInputPanel():" << inputPanel; Q_ASSERT(!this->inputPanel); this->inputPanel = inputPanel; if (QQuickItem *item = qobject_cast<QQuickItem *>(inputPanel)) item->setZ(std::numeric_limits<qreal>::max()); }
workaround is to set a timer to set the z value:
InputPanel { id: inputPanel Timer { repeat: false running: true interval: 60 onTriggered: inputPanel.z = 99 } }
- relates to
-
QTBUG-97075 [REG: 5.14.2->5.15.0] Anchors don't work with InputPanel anymore
-
- Closed
-
- resulted in
-
QTBUG-97439 [REG 5.15.2->6.2] Virtual Keyboard is hidden by QML dialog
-
- Closed
-