QT日常上班记录学习【1】
【1】 connect函数举例
原型
[static] QMetaObject::Connection QObject::connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type = Qt::AutoConnection)
解释
创建从发送方对象中的信号到接收方对象中的方法的给定类型的连接。
返回以后可用于断开连接的连接的句柄。
举例
在指定信号和方法时,必须使用SIGNAL()和SLOT()宏
例如:
QLabel *label = new QLabel;