- 
    Bug 
- 
    Resolution: Done
- 
    P4: Low 
- 
    5.5.1
- 
    None
- 
        b2be272d354defaebd82dfaa2dffefa5a8f3a303
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.
| For Gerrit Dashboard: QTBUG-46213 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V | 
| 112656,3 | Make QMetaObject::Connection check its state deeply | 5.5 | qt/qtbase | Status: MERGED | +2 | 0 |