Sebastian,

. . wrote:
> Hi, I have question about "signals/slots editor" in UI designer. Do I 
> have to manually add my (user-defined) signals/slots to designer? It 
> would be nice if QtCreator parsed .h file and show my signals/slots 
> automatically (in UI designer).
> 
> Or maybe I'm doing it wrong? I'm new to Qt so forgive me my ignorance. I 
> know designer is able to automatically create slot for an event but I 
> assume it's not forbidden for user to add other signals/slots to widget 
> class.

AFAIK QtCreator uses the QMetaObject::connectSlotsByName to connect the slots 
created with the designer. So if you create a slot on_<component>_<signal> with 
a correct signature it will work. Unfortunately it places the cursor behind the 
slot instead of inside, once ithe slot is created not matter whether it was 
created manually or by the designer itself.

By the way. I like the way (Borland|Inprise|CodeGear|Embarcadero) Delphi handle 
this since version 1.0 (1995 AFAIR). Maybe the trolls want to have a look at it 
to get some inspiration. It works like the property sheet and lists all 
possible 
slots (events in Delphi-speak) or just creates a new one, if you type in the 
name of an unknown and press enter. Of course this works both way,s from 
property editor to code and backwards.

Regards

Lars
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to