Hi Marcus, hi Oliver,
Marcus Lindblom wrote:
> Dominik Rau wrote:
>> Hi Olivier.
>>
>> Am 01.03.2009 um 12:27 schrieb Olivier Tournaire:
>>
>>> 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.
>
> Does the OpenSGQTWindow-dll export the required qt-designer-plugin stuff?
>
> If not, it probably doesn't work. We're using QT at our place so I'll
> probably take a look at designer-plugins within a few months. If I come
> up with something I'll get back to the mail list about making the
> OpenSG-QT work properly in QtDesigner.
I had that implemented for the OpenSG 1 Qt3 lib (see
Source/WindowSystem/QT/{OSGQGLManagedDesignerWidget_qt,OSGWindowQTPlugin}.{cpp,h}),
but it has not been ported to OpenSG2/Qt4 yet. Also I never tried on Windows,
but it did work on Linux.
If somebody wants to give it a try, I think the base is there but I don't know
how much they changed that interface for Qt4.
Hope it helps
Dirk
------------------------------------------------------------------------------
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