Hi,

I am trying to make a Qt4.x based application that uses osg. I followed the 
code in examples/osgviewerQt; but am hitting an error in my qt test code: 
GraphicsWindowCarbon::init could not create a valid pixelformat
However the example runs fine.

I've even tried copying QOSGWidget.cpp from the example folder and call the 
mainQOSGWidget from the basic qt skeletal program; but hitting the same error.

Any guessed on what I may be missing?

I've already done these things
+ Added -D__USE_OSX_AGL_IMPLEMENTATION__ -DUSE_QT4 to the qt generated Makefile
+ Added lib and lib path of osg to qt generated Makefile

Attachments:
+ My basic qt skeletal code
+ QOSGViewer.cpp from examples folder
+ Modified Makefile to add some #defines and link to correct osg libs

Thanks,
Vj

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=21753#21753




Attachments: 
http://forum.openscenegraph.org//files/makefile_140.txt
http://forum.openscenegraph.org//files/qosgwidget_137.cpp
http://forum.openscenegraph.org//files/main_187.cpp


_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to