
Originally Posted by
srohit24
any solutions??
Yepp, read the docs, validate your code... and use the CODE tags of this board!
To your question: You missed this
connect(ui->checkbox, SIGNAL(stateChanged()), this, SLOT(checkboxclicked()));
connect(ui->checkbox, SIGNAL(stateChanged()), this, SLOT(checkboxclicked()));
To copy to clipboard, switch view to plain text mode
and is checkboxclicked declared as a slot?
EDIT: and mybe you also want:
connect(ui->checkbox, SIGNAL(stateChanged(int)), this, SLOT(checkboxclicked(int)));
connect(ui->checkbox, SIGNAL(stateChanged(int)), this, SLOT(checkboxclicked(int)));
To copy to clipboard, switch view to plain text mode
Bookmarks