Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
5.15.15
-
ab5d93c87 (tqtc/lts-5.15)
Description
import QtQuick 2.15 import QtQuick.Window 2.15 import QtQuick.Controls 2.15 import QtQuick.VirtualKeyboard 1.2 import QtQuick.VirtualKeyboard.Settings 2.2 Window { id: window width: 640 height: 480 visible: true Column { Button { text: "Toggle Style" checkable: true onClicked: VirtualKeyboardSettings.styleName = checked ? "retro" : "default" } TextField { placeholderText: "Type here" } } InputPanel { id: inputPanel z: 99 x: 0 y: window.height width: window.width states: State { name: "visible" when: inputPanel.active PropertyChanges { target: inputPanel y: window.height - inputPanel.height } } } }
Steps to reproduce
- Run the application above
- Click on the TextField to bring up the virtual keyboard
- Click "Toggle Style"
- Repeat Steps #2 and #3 a few times
Outcomes
After Step #3, the keys turn blank and never come back (although the graphical style does switch correctly).
Fix
Qt 6 has already fixed this issue. We only need to change 1 line in BaseKey.qml: https://codereview.qt-project.org/c/qt/qtvirtualkeyboard/+/337986/25/src/virtualkeyboard/content/components/BaseKey.qml
It would be great to backport this to Qt 5.15.
Attachments
For Gerrit Dashboard: QTBUG-118758 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
515923,2 | Fix repeated style loading | tqtc/lts-5.15 | qt/tqtc-qtvirtualkeyboard | Status: MERGED | +2 | 0 |