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

What is the motivation of this connect? #2

Open
ztrnbm opened this issue Mar 13, 2022 · 1 comment
Open

What is the motivation of this connect? #2

ztrnbm opened this issue Mar 13, 2022 · 1 comment

Comments

@ztrnbm
Copy link

ztrnbm commented Mar 13, 2022

QMetaObject::connect(obj, signalIndex, this, staticMetaObject.methodCount());

Hi.
Can you please explain what's the motivation of this connection? Especially I have trouble to understand the destination method index "methodCount()". Does this suppress the signal (because it points to a not existing method)?
Thank you.

@ogoffart
Copy link
Member

It points to a not existing method, but that is then handled there:

since the qt_metacall is going to be called with that index.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants