summaryrefslogtreecommitdiffstats
path: root/src/testlib/doc/snippets/code
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2021-06-05 20:10:56 +0200
committerFabian Kosmale <fabian.kosmale@qt.io>2021-06-07 13:14:00 +0200
commitf6fb118c943ca4e54509b3c4c8aaafcdbb88f031 (patch)
treedf0b007b4c3cafdda59b4c8d02b7db2f93caf423 /src/testlib/doc/snippets/code
parent0ebe5c9ef617b3bb889d159958bc634f4959bed0 (diff)
QProperty: Do not involve semi-destroyed QObjects in bindings
Once we're in ~QObject, only methods of QObject are still valid. Notably, no setter of any derived class is still valid. Thus, to be safe we must no longer react to binding changes of those properties. To ensure that this happens for QObjectCompatProperty properties, we explicitly clear the binding storage. Fixes a particles3d example crash. Change-Id: I10d2bfa5e96621ce039d751cffaf3ac41893623e Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/testlib/doc/snippets/code')
0 files changed, 0 insertions, 0 deletions