[osg-users] osg-users osgviewerQT

James E. Hopper james.e.hopper at gmail.com
Mon Sep 24 16:32:04 PDT 2007


David,

I have an intel mac powerbook.  i built using qmake.  i created this  
pro file:

------


TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .

# Input
SOURCES += osgviewerQT.cpp
QT           += opengl
DEFINES = USE_QT4
mac {
LIBS = -framework OpenThreads -framework osg -framework osgDB \
      -framework osgGA -framework osgViewer -framework osgUtil \
      -framework osgText
}


------


then i did

qmake -spec macx-xcode osgviewerQT.pro


this creates an xcode project which i then build and ran.

the window comes up with the model in it.  from debugger i know that  
QT events are happening and being passed to OSG's GraphicsWindow
   The timer is firing and updategl is being called which calls the  
paint method, which calls frame().  However nothing is changing in  
the display. its like its ignoring the mouse, or the frame() call is  
doing nothing.  So perhaps the events are not being passed properly?

   i notice that there is a graphicswindowcarbon in the osg source,  
but no example seems to use it.  should it be perhaps used to get  
proper events to OSG?

thanks jim

> 2007/9/24, James E. Hopper <james.e.hopper at gmail.com>:
> >
> > David/Robert,
> >
> > i am on mac.  must be a mac issue.
>
>
> probably.
> Other mac-user, have you the same problem?
>
>
>   i have the same problem with the
> > MDI demo that someone else on the list had posted.
>
>
>
> MDI demo work well for me.
> Which Qt4 version are you used ?
> Can you give more info on you plateform ?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070924/ed40b8ae/attachment-0003.htm>


More information about the osg-users mailing list