QSignMapper

---恢复内容开始---

(QObject * sender, int id)

  void QSignalMapper::setMapping(QObject * sender, int id)      SIGNAL
Adds a mapping so that when map() is signalled from the given sender, the signal mapped(id) is emitted.

There may be at most one integer ID for each sender.    signal V.发信号

添加一个信号/槽映射关系,当QSignalMapper的槽map ()被sender的信号激活时(前提是sender的信号已经连接到

QSignalMapper的map()槽),QSignalMapper就会以id作为参数产生信号mapped ( int id )。

 

  QObject * QSignalMapper::mapping(int id) const
Returns the sender QObject that is associated with the id.

 

  void QSignalMapper::map()   SLOT
This slot emits signals based on which object sends signals to it.

---恢复内容结束---

posted @ 2016-03-17 15:29  蜗牛在奔跑  阅读(174)  评论(0编辑  收藏  举报