[osg-users] osgQtBrowser - compile problem
robert.osfield at gmail.com
Thu Nov 12 01:07:20 PST 2009
I can't recall the difference in behavior between with and without
setStickyFocus(), but it'll probably be related to how the texture
cursor behaves. As this method isn't available in older versions of
Qt then I'd suggest adding an #ifdef around it.
On Wed, Nov 11, 2009 at 9:38 PM, Jean-Sébastien Guay
<jean-sebastien.guay at cm-labs.com> wrote:
> Hi all,
> For a little while now I've had a local change to my OSG source tree and
> didn't think it was important enough to discuss since no one else seemed to
> have that problem. I'd like to remove this local change now, so my tree will
> build cleanly without any modifications...
> In the osgQtBrowser example, QGraphicsViewAdapter.cpp, there is the line
> I am compiling with Qt 4.4.3, and it seems this method is not available in
> this version. A) Is this really necessary, and B) is there some check we can
> do (for example #ifdef SOME_VERSION_OF_QT) that would allow us to skip that
> method call?
> I don't know when setStickyFocus(bool) was added to QGraphicsScene, maybe Qt
> 4.5? But as I said, is it even necessary? The example seems to run well
> without it, but it's perhaps some detail that I didn't notice (I'm not
> familiar with Qt coding).
> Can anyone suggest a good fix?
> Jean-Sebastien Guay jean-sebastien.guay at cm-labs.com
> osg-users mailing list
> osg-users at lists.openscenegraph.org
More information about the osg-users