码迷,mamicode.com
首页 > 其他好文 > 详细

160308_Signals & Slots

时间:2016-03-08 13:25:33      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:

  In Qt, we have an alternative to the callback technique: We use signals and slots. A signal is emitted when a particular event occurs. Qt‘s widgets have many predefined signals, but we can always subclass widgets to add our own signals to them. A slot is a function that is called in response to a particular signal. Qt‘s widgets have many pre-defined slots, but it is common practice to subclass widgets and add your own slots so that you can handle the signals that you are interested in.

 技术分享

  

160308_Signals & Slots

标签:

原文地址:http://www.cnblogs.com/zhrong/p/5253537.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!