PDA

View Full Version : Qt Designer, Signal and slots for own methods



seltra
15th September 2010, 21:18
Hello,
I'm using Qt 4 commercial with Visual studio.

By using Qt Designer Signal/slot editor i can add slot/signals.

But i want to have slots that are consisted of my own methods.
For example a method outputs a dialog box when i click pushButton?
What should i do to see my own method in Signal Slot editor's Slot column?

Thank you very much

Lykurg
15th September 2010, 22:26
Goto the signal&slot mode of designer, then choose your component which emits a signal and drag it to the base widget. In the opening dialog you have a button called "change". Here you can define custom slots and signals.