[Qt-creator] Signals and slots in designer

Bogdan bogzal at gmail.com
Mon Oct 19 14:48:27 CEST 2009


> 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.

It may be kind of workaround in some situations but .h file is parsed
anyway by QtCreator (e.g. for code completion). Why can't UI designer
simply use this information to display user defined signals and slots?

> 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.

It was really convenient indeed. I'd really like to see such
functionality in QtCreator.

Regards,

Bogdan



More information about the Qt-creator-old mailing list