Qt 4.4 includes a QGraphicsView class, this class can be used to perform
OpenGL drawing,
instead of using the QGLWidget. This might open up some new possibilities
for
embedding osg in the QGraphicsView. I will take a look at the possibilities.
Rene
2008/8/17 René Molenaar <[EMAIL PROTECTED]>
>
(i use qt 4.4.1 and osg 2.6, and adapted vierwerqt example sources)
The QOSGWidget works for me on linux.
On windows I got the pixelformat error but,
I got the QOSGWidget to work, and the --CompositeViewer version, by adding
the traits->setInheritedWindowPixelFormat = true; line.
I don't see any
Hi Robert,
I quickly hacked the --QOSGWidget mode in order to work around the
"invalid pixel format" error (forcing
traits->setInheritedWindowPixelFormat = true;) and the result is the
same : trashed scene on the second run.
I tried adding the piece of code you suggested but it does not change
Hi Mathieu,
The error with -QOSGWidget looks to be a bug in this code, but its a
totally different path that the default path which uses
GraphicsWindowEmbedded to adapt the Viewer. QOSGWidget is the most
flexible path for integration and long term I'd like this to be the
default route under Qt.
Hello,
Thanks for your reply !
I am indeed running "osgviewerQT windows.ive".
If I add --QOSGWidget I get this error message right away : Windows
Error #2000: [Screen #0] GraphicsWindowWin32::setWindow() - Unable to
create OpenGL rendering context. Reason: The pixel format is invalid.
Followed
Hi Mathieu,
I've tried your windows.ive and the suggested mods to osgviewerQT and
it works fine even for running 6 viewers consecutively using
osgviewerQT windows.ive, but if I add --QOSGWidget I get a crash on
the second run.
FYI, I'm running under Linux.
What command line are you using?
Robe
6 matches
Mail list logo