【发布时间】:2016-01-08 02:30:11
【问题描述】:
我想将两个整数(string 和 fret)发送到一个 SLOT,该 SLOT 将处理按下按钮的位置。 SIGNAL 和 SLOT 参数必须匹配,所以我想我需要重新实现 QPushButton::clicked 事件方法。问题是我是 Qt 新手,可以使用一些方向。
connect(&fretBoardButton[string][fret], SIGNAL(clicked()), this, SLOT (testSlot()));
【问题讨论】:
标签: c++ qt qpushbutton qt-signals