On Mon, Oct 19, 2009 at 7:48 AM, Bogdan <bog...@gmail.com> wrote: >> 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.
Designer has no way to know about your user-defined slots, because the definitions you've added in your class belong to a subclass of the form or to a wrapper class around the form. I thought, though, that Designer offered a way to connect to a slot it didn't know about so you could define it in the subclass. /s/ Adam _______________________________________________ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator