-
My Slot Function
Hello,
I add signal/slot through the designer and specify the custom slot function for the main form window. However when I look for that function's definition in Visual Studio I cannot find it, and hence I cannot edit it. How can I add code to the body of this slot function?
Thanks.
-
Re: My Slot Function
Designer doesn't modify your source code, it only declares that the signal or slot will exist in the widget the form is deployed on. But you have to create the actual slot (or signal) yourself in the subclass of QWidget (notice the form class doesn't inherit QWidget).
-
Re: My Slot Function
This means I need to add "slot: myfunction(..)" declaration and definition to the QWidget class, not to the class where the connect(...) statement was added by the designer?
-
Re: My Slot Function
Yes, something like that.