Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.12.3
-
None
-
-
29c61f83c98c269c1c862a668c0a91a1027ee2d2 (qt/qtdeclarative/5.12)
Description
How to reproduce
I attached a minimal example to demonstrate the bug:
- Start the main.qml in an empty QtCreator QML project. (qmlscene does not reproduce the bug!).
- Then click the checkbox and press arrow key down -> program crashes with read access violation.
Possible explanation
The Button has "KeyNavigation.up" pointing to the CheckBox. This will implicitly set the
KeyNavigation.down of the CheckBox pointing back to the Button.
Pressing the CheckBox will focus the checkbox and remove the Button from the UI.
Pressing arrow key down will now try to focus the already garbage collected Button.
-> crash
Attachments
For Gerrit Dashboard: QTBUG-75399 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
262210,7 | Fix read access violation when using KeyNavigation attached property | 5.12 | qt/qtdeclarative | Status: MERGED | +2 | 0 |