Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.9
-
None
Description
Move-only functors don't seem to be supported by QObject::connect().
E.g.
QObject *o;
auto f = [u = std::unique_ptr<int>()](){};
QObject::connect(o, &QObject::destroyed, std::move(f));
does not compile as an attempt of copying f is made.
Attachments
Issue Links
- relates to
-
QTBUG-69683 Support move-only functors in QMetaObject::invokeMethod
- Closed