The toggled
signal is emitted every time the check state of the checkbox changes, even if it changes through code, while the clicked
signal is emitted only when the user interacts with the checkbox, eg:
ui->checkbox->setChecked(true); // toggled() will be emitted, but not clicked()