Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
hi,guys: here is my code,why the lambda will be called increasingly for a local variable qeventloop? even i use UniqueConnection or not:
@QtTester
Unique connections do not work for lambdas because we can't compare them for equality.
@J-Hilk thanks for reply. but local variable will be destructed, and last lambda will disconnect automatically. right?
@QtTester what local variable ?
connect(this, &QLibUsb::sigEpxDone, this, &)
both reference objects are the same this instance of your class, It's going to exist forever, or at least as long as your class is instantiated
this
@J-Hilk thank you