Qt Designer: How to remove slot from designer?

B Faley picture B Faley · Sep 1, 2013 · Viewed 11.1k times · Source

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.

Answer

Rahul Tripathi picture Rahul Tripathi · Sep 1, 2013

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