Hi Christoph,

Simon Haegler wrote:
>> I am using one of the recent OpenSG cvs builds (from last week). In my
>> project I use a GUI created with Qt and Qt-Designer Version 4.2.1. 
>> Furthermore I have a plugin widget for the designer which creates a graphical
>> widget to render OpenSG content into the GUI. (SGWidgetPlugin returns "class
>> SGWidgetOSG : public OSG::OSGQGLWidget" to designer ). -> In SGWidgetOSG I
>> use my own helper classes (which themselfs use OpenSG) to perform setting up
>> the scenegraph, picking, navigating and so forth... (because the
>> OSG::SimpleSceneManager is a little bit to restrictive for me). I managed to
>> get my plugin showing up in designer, so it can be used just like any other
>> widget in designer. (Designer even shows the OSG::Viewport with a gradient
>> background I setup in my widget).
 >
> i cannot respond directly to your problems, but i have a similar setup. i'm 
> also 
> working on a Qt4 application which uses OpenSG from cvs. however, i do not 
> use 
> designer.
> 
> i never managed to compile OpenSG with Qt4 support, so i could not use the 
> predefined OpenSG-Qt widgets. but there is a well working fallback solution: 
> i 
> compiled OpenSG without Qt support and used the PassiveWindow together with a 
> QGLWidget from Qt4 to create my own OpenSG widget. this takes very little 
> effort.
> 
> there is even the possibility to use OpenSG with Qt _3_ support in the above 
> setup. then you'll still be able to use fcdEdit etc...

Given that you have your own navigation anyway Simon's recommendation sounds 
very good. Using a PassiveWindow avoids a lot of potential problems. It's not 
as 
nice from a QT point of view, but much simpler overall.

Hope it helps

        Dirk

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to