Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.4.2
-
None
-
dbe9a8c9696428529cacb9dd4e004db99914b56e
Description
As mentioned in the mailing list:
If you pass a mutable lambda (or function object) to QObject::connect, each time the signal is emitted, the values captured are the ones passed at the time when connect was called. This is due to the object being copied each time the signal is emitted.
Attachments
For Gerrit Dashboard: QTBUG-52542 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
155546,4 | Don't copy the functor object for each signal emission | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |