Meysam Meysam - 3 months ago 11
C++ Question

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.

Answer

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