Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 developer.ubuntu.com 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

1 Answer 1

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 developer.ubuntu.com 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

 
discard

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.