Meysam
Meysam

Reputation: 18167

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.

Upvotes: 21

Views: 14282

Answers (2)

Omer Talmi
Omer Talmi

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

Rahul Tripathi
Rahul Tripathi

Reputation: 172548

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

Upvotes: 32

Related Questions