[Qt-interest] declare signals and slots in macros

Frank Hemer frank at hemer.org
Fri Mar 13 13:50:43 CET 2009


On Friday 13 March 2009 11:23:47 Andrea Franceschini wrote:
> 2009/3/13 Nathan Carter <nathancarter5 at gmail.com>:
> > So I don't think that the transformation you describe
> > below should "make a lot of things go wrong."
>
> Of course it does: If the moc doesn't find the right hint, it doesn't
> make the given functions into slots so that I am left with a bunch of
> public members returning void. This of course results in the runtime
> error "Object::connect: No such slot".

The problem is that moc doesn't expand macros.

Take a look at suggestion 234021 in the Task tracker - maybe thats of help for 
your issue.

Frank



More information about the Qt-interest-old mailing list