Details
-
Bug
-
Resolution: Done
-
P4: Low
-
5.5.1
-
None
-
b2be272d354defaebd82dfaa2dffefa5a8f3a303
Description
The last assert is triggered here:
#include <QObject> int main(int argc, char** argv) { QObject object; int emitted = 0; QMetaObject::Connection qConnection = QObject::connect(&object, &QObject::objectNameChanged, [&emitted] { ++emitted; }); QMetaObject::Connection qConnectionCopy = qConnection; QObject::disconnect(qConnection); Q_ASSERT(!qConnection); Q_ASSERT(!qConnectionCopy); }
Either QMetaObject::Connection should not be copyable, or there could be sharing of state like QPersistentModelIndex does.