Hi Yücel,

I think I had the same problem with qt3. I changed my code to use a static functor is this an option for you?

Andreas


Hi,

I am using OpenSG V1.6.0 with the latest qt release 4.1.1 on my windows xp
sp 2 machine and visual studio 2005. The problem that i have is, that the
traverse() routine does not work for objects that are derived from QWidget.
Here is my sample code:

//#include <QObject>
#include <QWidget>
#include <iostream>
#include <OpenSG/OSGAction.h>

//class travstate : public QObject
class travstate : public QWidget
{
public: OSG::Action::ResultE enterme(OSG::NodePtr& node)
    {
                std::cout << "entering";

return OSG::Action::Continue; } };

Please note that the class travstate is derived from Qwidget. Now i call the
traverse() routine like this:

travstate t;
traverse(some_node, osgTypedMethodFunctor1ObjPtrCPtrRef<Action::ResultE,
travstate, NodePtr>(&t, &travstate::enterme));

But the enterme() method of t (of type travstate) is never invoked. When i
for example derive from QObject instead of Qwidget than enterm() gets
invoked.

Can anybody reproduce this ? Is this a problem of qt-4 or is it the same
with qt-3 ?

Thanks in advance,

Yuecel Ahi

P.S.: Please cc any replies to [EMAIL PROTECTED] as i am currently not 
subscribed
to the list.



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to