Hi Mathieu, The MTCompositeViewer class is a bad hack (i need to call show () to start the timer.. so i create a 1x1 window).
Basically i would like to get rid of that MTCompositeViewer class since embedding CompositeViewer in a QT Widget is not neccesary at all and additionaly makes the example unstable (try to do 4x4 views for example). The drawback of that is that the frame () call to CompositeViewer has to be made. A qt object which contains a QTimer and a pointer the the CompositeViewer. Timer calls frame() periodically. You need a slot for that, hence the need for moc. That's what i do in my code here.. the 4x4 thing runs just fine then. In the meanwhile i have seen that resizing the app can mess up the performance pretty bad. Trying to understand why, unfortunately i don't have much time for debugging. My impression is that CompositeViewer gets messed up with its threads, but that's just wild speculation. greets Lukas On Thu, Oct 30, 2008 at 01:49:48PM +0100, Mathieu MARACHE wrote: > Hi Lukas, > > I've looked into this and cannot figure what you were trying to > achieve with the --MTCompositeViewer. From what I see you have an > unshown class that holds the CompositeViewer who's views are build on > each QOSGWidget graphic context you've built ? > > If this is correct how using moc would change anything ? > > > Mathieu > > > > 2008/10/29 Mathieu MARACHE <[EMAIL PROTECTED]>: > > Hi Robert, Lukas > > > > I will look into this ASAP, > > > > Mathieu > > > > > > > > 2008/10/29 Robert Osfield <[EMAIL PROTECTED]>: > >> Hi Mathieue and Lukas, > >> > >> > >>> That's /easy/ with cmake and Qt4. Here's the setup : > >>> your class MyWidget is declared inside file MyWidget.h and using the > >>> Q_OBJECT macro. > >>> your implementation goes into MyWidget.cpp and includes a non-existent > >>> file called MyWidget.moc. > >>> > >>> calling QT4_AUTOMOC(MyWidget.cpp) from the CMakeLists.txt will make > >>> the magic happen... > >> > >> I'm open to seeing such a change made to the osgviewerQT example, I'm > >> now QT expert so I'll have to leave implementation up to you guys. > >> > >> Robert. > >> _______________________________________________ > >> osg-submissions mailing list > >> [email protected] > >> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > >> > > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org -- Lukas L. Diduch Smartspace Laboratory Information Access Division (IAD) National Institute of Standards and Technology (NIST) web : http://www.nist.gov/smartspace email : [EMAIL PROTECTED] office : +1 (301) 975 6399 fax : +1 (301) 975 5287 mobile : +1 (240) 899 6536 _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
