信号声明:
public slots:
void hello();
调用:
connect(btn, SIGNAL(clicked()), SLOT(hello())); //点击事件
槽函数:
void QtGuiApp01::hello()
{
qDebug() << "hello world";
}
信号声明:
public slots:
void hello();
调用:
connect(btn, SIGNAL(clicked()), SLOT(hello())); //点击事件
槽函数:
void QtGuiApp01::hello()
{
qDebug() << "hello world";
}