Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
michelson last edited by
Can one disable connect-by-name signal-slot function? I would like to set everything by myself i.e. to avoid double connections messing up everything.
What do you mean by connect-by-name? And what do you mean by "disable"? There's no notion of disabling functions in c++;
If you want to avoid doubled connections you can pass Qt::UniqueConnection as the last param of connect.
Do you mean the auto connect from Designer UI files?
Sò buttons work with no connect code?
It is based on the slots look like this
void on_widget name_signalname
so if you rename it to not follow this pattern, it won't be auto connected.