[osg-users] osg-users osgviewerQT
Robert Osfield
robert.osfield at gmail.com
Tue Sep 25 00:29:41 PDT 2007
Hi Jim,
I suspect this problem is down to stupid bit of behavior under OSX
that Apple decided was a good idea... basically you have to tell the
OS that you actually want events in your application.
osgViewer::GraphicsWindowCarbon has a call to do this, this must be
missing from QT. The alternative to this call is to provide a
resource file which seems to be the "official" Apple but still crap
way of doing this.
Robert.
On 9/25/07, James E. Hopper <james.e.hopper at gmail.com> wrote:
>
> 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 ?
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
More information about the osg-users
mailing list