PDA

View Full Version : how to add custom signal to designer



wagmare
2nd March 2009, 16:30
hi friends,
if i am customizing a new signal from current signal of QWidget() ..using signal mapper or any ..
ex: QPushButton-> SIGNAL clicked(int )

is it possible to add this to designer ... ?

i am using qt4.4.3

Lykurg
2nd March 2009, 18:36
Hi,

you have to provide a plugin for your new object to use special signal and slots: Creating Custom Widget Extensions (http://doc.trolltech.com/main-snapshot/designer-creating-custom-widgets-extensions.html).

Lykurg

ktk
2nd March 2009, 23:47
Hi,

you have to provide a plugin for your new object to use special signal and slots: Creating Custom Widget Extensions (http://doc.trolltech.com/main-snapshot/designer-creating-custom-widgets-extensions.html).

Lykurg

That's one option, and possibly the one creating the most headaches.

An alternative would be to "promote" the widget (Right click, "Promote to...")

Lykurg
3rd March 2009, 11:26
An alternative would be to "promote" the widget (Right click, "Promote to...")

Yepp, thats right, but with this procedure you can't use new signals and slots and properties in designer. Only these ones of the basis class.