Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been trying to get a simple window with button. And i have no idea on how to "bind" a button from the QML thing to a C/C++ function for example.

I followed the example from but it didn't involve what I am trying to do.

Can someone give me a example of how to do this? Or hint me to some documentation on how to do this,i haven't been able to find anything so far.

share|improve this question
See if this or this helps. Qt uses signals/slots to bind actions to events. QML may work the same way. – Salem Feb 20 '13 at 20:33
I managed to find what i needed, thank you. – Zentdayn Feb 20 '13 at 20:52
Please post what you found as an answer to your own question then, it will help other people who are asking the same thing – mhall119 Feb 20 '13 at 22:08
Will do that as soon as the 8 hours min. wait time is over. – Zentdayn Feb 20 '13 at 23:51
up vote 1 down vote accepted

Found what i needed on Official Documentacion for QT5 which matched the version i was using ( which was the problem the whole time ).

Looks like the guide i followed from told me to install QT5 IDE and i had been reading 4.X documentacion.

share|improve this answer
Can only accept my own answer tomorrow. – Zentdayn Feb 21 '13 at 11:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.