Reputation: 18167
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.
Upvotes: 21
Views: 14282
Reputation: 126
You can press View->Signal/Slot editor, then, a new window will be shown, simply remove the slots by pressings the minus button.
Upvotes: 0
Reputation: 172548
You have to remove the declaration of <class_name>::on_pushButton_clicked()
from header file.
Upvotes: 32