Hi Olivier.

Am 01.03.2009 um 12:27 schrieb Olivier Tournaire:

> I am new to OpenSG and it seems to be very interesting for my  
> purpose. However, I am having trouble on how to use the trunk  
> version (2.0.0) with Qt4.

Basically, it's the same: You just derive your own Widget from  
QGLWidget and call all the methods of a passive window inside the  
corresponding methods. I can send you mine if you need it.

> I found an old tutorial related to OpenSG 1.6.0 
> (http://www.opensg.org/doc-1.6.0/QT.html 
> ) but it is outdated with both versions of Qt4 and OpenSG 2.0. So,  
> could someone give some tricks on how to add an OpenSGWidget to  
> QtDesigner and how to use it. Or a way to use OSG with Qt4.

I never managed to get this working properly in the designer, but  
there's an easy trick. In the QT designer, you can "promote" Widgets:  
Just add a plain QGLWidget, go to its context menu and set "promote  
to" to the name of your derived class. It should generate all the code  
you need properly then.

HTH,
Dominik


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to