Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.3, 6.0.1
-
-
916bf3025355653e16a4df209d4e08ec385a4f57 (qt/qtvirtualkeyboard/dev)
Description
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 } }
Attachments
Issue Links
- 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
-
For Gerrit Dashboard: QTBUG-92881 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
347344,5 | Decrease the z-value of the InputPanel to 10000 | dev | qt/qtvirtualkeyboard | Status: MERGED | +2 | 0 |
376971,9 | Only reparent the InputPanel when necessary | dev | qt/qtvirtualkeyboard | Status: MERGED | +2 | 0 |
376972,6 | Make the dimmer item known to the overlay | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
376973,9 | Use a containment mask to keep input panel working during modal session | dev | qt/qtvirtualkeyboard | Status: MERGED | +2 | 0 |
377085,2 | Only reparent the InputPanel when necessary | 6.2 | qt/qtvirtualkeyboard | Status: MERGED | +2 | 0 |
377176,2 | Make the dimmer item known to the overlay | 6.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
377181,6 | Only reparent the InputPanel when necessary | tqtc/lts-5.15 | qt/tqtc-qtvirtualkeyboard | Status: MERGED | +2 | 0 |
379832,2 | Use a containment mask to keep input panel working during modal session | 6.2 | qt/qtvirtualkeyboard | Status: MERGED | +2 | 0 |