[Qt-interest] declare signals and slots in macros

Patrick Vollebregt jeet.nl at gmail.com
Thu Mar 12 23:55:06 CET 2009


Hi,

I'm not sure because I'm pretty new with QT, so you should check my 
answer. But as I first was very confused with how things work I think I 
start to understand it actually. ;)

/public slots: /

In your macro could be expanded to public : because /slots* */might be 
defined as an empy macro, just to be a hint to the Meta Object Compiler.

Kind regards,

Patrick Vollebregt.

> Hi all,
> As you may have guessed, I am the one that always comes out with
> naughty code :) This time I tried to define a macro which dealt with
> the declaration of slots. Obviously macro expansion is not recursive,
> so basically when I put in my macro
>
> public slots:
>
> it is expanded as
>
> public :
>
> which makes a lot of things go wrong. So, as far as you know, is there
> a better way to achieve this? I so badly need to do that but of course
> the rules of the games are these. Ideas?
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090312/948269b9/attachment.html 


More information about the Qt-interest-old mailing list