首页 > 其他 > 详细

160308_Signals & Slots

时间:2016-03-08 13:23:03      阅读:171      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!