Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 583
B Faley Avatar asked Sep 01 '13 08:09

B Faley


People also ask

What is private slots in Qt?

Declaring slots as private means that you won't be able to reference them from context in which they are private, like any other method.

How QT slots work?

The Qt signals/slots and property system are based on the ability to introspect the objects at runtime. Introspection means being able to list the methods and properties of an object and have all kinds of information about them such as the type of their arguments.


1 Answers

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

like image 56
Rahul Tripathi Avatar answered Oct 04 '22 00:10

Rahul Tripathi