Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.2.0 FF, 6.2.0 Alpha, 6.2.0 Beta1, 6.2.0 Beta2
-
None
-
-
e4d62651c278c468f71ce097979bc1183ffd0713 (qt/qtbase/dev) 7f97d21105f0164c1d3d623d66af56b9f52ae19b (qt/qtbase/6.2)
Description
Since 6.2, QPropertyAlias can no longer be instantiated without leading to immediate crash.
The crash is cased by QPropertyObserver::aliasedProperty() returning nullptr. nullptr is not allowed for setting observer (QBindableInterface::SetObserver).
QPropertyAlias uses QPropertyObserver::aliasedProperty() in all its functions to retrieve the aliased property and strictly requires a pointer to an existing property.
Code example:
QProperty<int> property; QPropertyAlias<int> alias(&property); // crash
Attachments
For Gerrit Dashboard: QTBUG-95846 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
365512,1 | Fix construction QPropertyAlias object crash | dev | qt/qtbase | Status: ABANDONED | -1 | 0 |
365673,4 | Re-add QPropertyAlias functionality | dev | qt/qtbase | Status: MERGED | +2 | 0 |
366423,2 | Re-add QPropertyAlias functionality | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |