Associate a button to a key
General and Desktop
2
Posts
2
Posters
1.1k
Views
1
Watching
-
Hi,
i'm creating a calculator and i want to associate the key "+" to the corresponding button on my program and performing the plus operation.I searched in the doc and i understood that the solution is something about event, but i need a practical example.
Thank you for the help :D -
Read the "Event Filters" section of the documentation here:
http://qt-project.org/doc/qt-4.8/eventsandfilters.html
This explains everything for your case and has example code.