C++ – Qt Designer: How to remove slot from designer

cqtqt-designersignals-slots

Adding slot for a signal of a widget is easy: right click on it and select "go to slot". But how can I remove the slot created for a button (like on_pushButton_clicked) from the Qt designer.

Best Answer

You have to remove the declaration of <class_name>::on_pushButton_clicked() from header file.