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

QtQuitButtonDemo1 - connect signals not working #1

Closed
dsoronda opened this issue Jul 25, 2016 · 3 comments
Closed

QtQuitButtonDemo1 - connect signals not working #1

dsoronda opened this issue Jul 25, 2016 · 3 comments

Comments

@dsoronda
Copy link
Owner

QtQuitButtonDemo doesn't work.
Need proper example for using QtCore.QMetaMethod for sending signals around.

@dsoronda
Copy link
Owner Author

I need to bind signals from QtButton (clicked) to QtApp (quit)

I tried this :
` // This is from : Qt documentation
//connect(m_button, SIGNAL(released()), this, SLOT(handleButton()));

Connect(quitButton, "clicked()","quit()");`

@ddobrev
Copy link

ddobrev commented Jul 25, 2016

I have actually wrapped Qt signals as C# events. So all you need to do is:

quitButton.Clicked += <your handler>;

@dsoronda
Copy link
Owner Author

@ddobrev

Thanks, that fixed this issue.

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