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.
Asked
Active
Viewed 1.3k times
20

B Faley
- 17,120
- 43
- 133
- 223
-
your answer is here, http://stackoverflow.com/questions/11082348/how-to-remove-slot-created-in-designer-mode#comment14510244_11082348 – dare Sep 01 '13 at 09:06
2 Answers
31
You have to remove the declaration of <class_name>::on_pushButton_clicked()
from header file.

Rahul Tripathi
- 168,305
- 31
- 280
- 331
0
You can press View->Signal/Slot editor, then, a new window will be shown, simply remove the slots by pressings the minus button.

Omer Talmi
- 128
- 3
- 11