Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt 6.8 preparation: Qt::UniqueConnection can only be used with QObject member functions #25343

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cbjeukendrup
Copy link
Contributor

@cbjeukendrup cbjeukendrup commented Oct 27, 2024

This has been the case always, but only since a few Qt versions it causes an assertion failure.

This is my quick-and-dirty fix cherry-picked from #25016. I'm not sure if it is the simplest/cleanest thing we can do, but it is the closest equivalent to a capturing lambda (I seem to recall that that is under the hood treated as a class with the captures as member fields).

@Eism I'm aware that this may be obsoleted by your work on the KDDockWidgets 2.1 update; if that's the case, feel free to close this!

Resolves: #24716
Resolves: #25307

@cbjeukendrup cbjeukendrup requested a review from Eism October 27, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant