Hi Tom,

this solution won't let us use signal/slot stuff (

2009/8/28 Jolley, Thomas P <thomas.p.jol...@boeing.com>

>  Hi Maxim,
>
> What was the result of adding -DQT_NO_EMIT to the compilation flags that
> Antonin Linares suggested?
>
>
> http://www.mail-archive.com/osg-users@lists.openscenegraph.org/msg27183.html
>
> ----
> Tom Jolley
>
>  ------------------------------
> *From:* Maxim Gammer [mailto:maxgam...@gmail.com]
> *Sent:* Friday, August 28, 2009 6:02 AM
> *To:* OpenSceneGraph Users
> *Subject:* [osg-users] Improvement of QT and OSG compatibility
>
> Hello,
>
> I've got a proposal to make changes in OSG for better compatibility with
> QT.
>
> Method's name "emit" needs to be replaced in namespace osgParticle.
>
> The thing is that "emit" is a name of the macros in QT. Of course, we can
> redefine "emit" like that:
>
> #ifdef emit
>
> #define MACRO1_SAVE emit
>
> #endif
>
> #undef emit
>
> .....#include <osg....>
>
> #ifdef MACRO1_SAVE
>
> #define emit MACRO1_SAVE
>
> #undef MACRO1_SAVE
>
> #endif
>
> , but this solution won't let us use signal/slot stuff.
>
> It seems that QT preprocessor replaces "emit" in program listing.
>
> The simpliest way to solve that - change method name from "emit" to
> something else. This will let us using signal/slot things in QT.
>
> --
> Maxim Gammer
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
Maxim Gammer
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to