Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create a custom slot in qt4 designer?

Tags:

Whenever I use the signal/slot editor dialog box, I have to choose from the existing list of slots. So the question is how do I create a custom named slot?

like image 852
user24560 Avatar asked Oct 03 '08 03:10

user24560


People also ask

How to create custom signal slots in Qt4?

In Qt3 you could create custom slots which where then implemented in the ui.h file. However, Qt4 does not use this file so custom slots are not supported. right click on the main window and select "change signals and slots" and add a new slot. It will appear in your signal slot editor.

How do I add a custom signal/slots?

By default you have to choose from the existing list of slots. But you can add slot by right-clicking at you object in the list at right side of designer and choose "slot/signals" and add your custom slot/signal. After that, you can choose it in signal/slot editor.

How to connect widgets and layouts in Qt Designer?

Both widgets and layouts can be connected via an intuitive connection interface, using the menu of compatible signals and slots provided by Qt Designer. When a form is saved, all connections are preserved so that they will be ready for use when your project is built.

How do I find the owner of a custom slot?

When the Configure Connection window appears, look at the names of the two columns. The name of the right column is supposed to be the owner of the custom slot. – Honest Abe Aug 22 '15 at 23:59


1 Answers

right click on the main window and select "change signals and slots" and add a new slot. It will appear in your signal slot editor.

like image 155
raigon Avatar answered Oct 04 '22 04:10

raigon