Hi,
I've just learned from a tutorial that I can define my own slot for a pushbutton using the creator like this:
- put a QPushButton on the Gui in the built-in designer.
- right click on the button -> "Go to slot..."
- chose "clicked()"
And than the creator creates the new slot in the header and jumps to the implementation and I can work on it.
Now my question is just technical: Where is it declared that this signal-slot (namely clicked()-on_pushButton_clicked()) connection exists? I cannot see a connect(...) line anywhere, nor a footprint in the designer, but it is surely there somewhere as it works fine. Personally I like better to define the connections in the code becasure I can than better see what connections exist and what not, but this mechanism is really pretty so I may want to use it sometimes but I can't see why it works.
Bookmarks