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?
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.
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.
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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With