Hi Virgina,
I have compiled you on my system, compiling against QT4, and get the error:
/home/robert/OpenSceneGraph/examples/osgviewerQT/AdapterWidget.cpp:153:
error: 'WDestructiveClose' is not a member of 'Qt'
make[2]: ***
:08 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] ViewerQT destruction
Hi Virgina,
I have compiled you on my system, compiling against QT4, and get the
error:
/home/robert/OpenSceneGraph/examples/osgviewerQT/AdapterWidget.cpp:153:
error: 'WDestructiveClose' is not a member of 'Qt'
make[2
Hi Robert,
you will need an #ifdef Qt4 thingy to replace:
Qt::WDestructiveClose with Qt::WA_DeleteOnClose
See http://doc.trolltech.com/4.0/qt.html
or http://doc.trolltech.com/4.0/qt.html#WidgetAttribute-enum
You could also replace the USE_QT4 definitions with eg:
#if QT_VERSION =
Robert-
I am afraid I cannot help with Qt 4. Much to our dismay we haven't been allowed
to use it due to bureaucratic issues.
I did hope to use CompositeViewer originally. But I was unable to get
CompositeViewer to work across multiple QT windows:
I'm not sure how many people can see this because I am not sure how many people
use Qt 3.3.3 or if it is reproducible in Qt4. However, I can get objects in a
one window to dissapear when another winodow is destructed even when using a
different scene. (My previous example used the same scene).
Hi Virginia,
There is not much I can do without seeing the problem first hand. Is
it possible to recreate it by modifying the existing osgviewerQT
example? If so, could do this to effectively create a unit test for
this particular usage case.
Another possible route with solving this type of
Robert-
I have modified AdapterWidget.cpp from the osgviewerQt example. Use with Osg
2.4, Qt 3.3.3. It is obviously much simplified from what I have but exhibits a
similar problem.
What I changed:
1. Created 3 ViewerQts instead of just 1
2. Added a destructor to ViewerQt
3. Added the
7 matches
Mail list logo