In Qt, signals and slots are used to communicate between objects. This should provide you with the necessary information to get you started.
. Qt , , . - , . Qt , , , .
, QPushButton clicked() , , ( ):
QPushButton * btn = new QPushButton("Button", this);
connect(btn, SIGNAL(clicked()), this, SLOT(onBtnClicked()));
:
private slots:
void onBtnClicked();
:
void MySpecialWidget::onClick()
{
}
, ... , , :
Object::connect: No such slot MySpecialWidget::onClick() in ...
Object::connect: No such signal ....
, .
, Qt.