I am trying to diable the click on radio buttons from the user - so that they only can be changed from the code. I have tried with this connection without any effect (it gets triggered through):
connect(ui->radioButton, &QRadioButton::clicked, [this]() {
return true;
});
Any suggestions?