Search code examples
c++qtsignals-slotsqt-designer

Qt Designer: How to remove slot from designer?


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.


Solution

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