View Single Post
Posts: 143 | Thanked: 99 times | Joined on Jun 2009 @ Houston
#2
Originally Posted by ahmadka View Post
My first question is: how can I know all the events that a specific control on a form supports ? (e.g. a button can support events such as clicks, hover over, etc ..) .. how do I get the full list of such events for each of the controls ?
The official documentation is your friend; http://doc.qt.nokia.com/4.6/index.html

also, if you right click on a control in a form and select "go to slots", you'll see all the signals that that control can emit,

What are 'private slots' and doesn't Qt Creator automatically create all the even function declarations for you in the header file ? I'm asking this because I saw a Qt Creator getting started tutorial, and in that all event function declarations and definitions were manually written in ..
If you use the designer all that will be taken care of automatically. However, this only works for the default controls. If you need to subclass some Qt widget and add new signals/slots you'll have to take care of those manually. It's not hard, actually... the above link has some nice tutorials.

Happy coding.
 

The Following User Says Thank You to tpaixao For This Useful Post: