[osg-submissions] Fix for /examples/osgviewerQT/AdapterWidget.cpp to compile with Qt 3.3.6

Robert Osfield robert.osfield at gmail.com
Thu Apr 17 03:24:05 PDT 2008


Thanks John, this version merged without problems, now merged and
submitted to SVN.

W.r.t QT-4.0, 4.1 and 4.2 support, I have looked at the CMake
variables generated by the FindQT codes and can't
spot anything that we can use so far.  We'll probably need to add some
extra QT version checking into the CMake
build system.  Alas I'm not a CMake expert so can't point to exactly
how to do it yet.

On Thu, Apr 17, 2008 at 5:41 AM, Shue, John A <John.Shue at mantech.com> wrote:
> Robert,
>
>  Latest svn failed to compile on FreeBSD 6.2-STABLE with Qt 3.3.6
>  installed.
>
>  Attached AdapterWidget.cpp file fixes compile problems with Qt 3.3.6
>  which were caused by the use of QMdiArea class which was introduced in
>  Qt 4.3 (http://doc.trolltech.com/4.4rc1/qmdiarea.html).
>
>  I'm not a Qt expert, but it appears that the use of QMdiArea class in
>  this example will likely cause problems for people with Qt versions 4.0
>  to 4.2 as the USE_QT4 preprocessor definition appears to be defined for
>  any Qt version 4.x...
>
>  -john
>  This communication, along with any attachments, is covered by federal and state law governing electronic communications and may contain company proprietary and legally privileged information.
>  If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, use or copying of this message is strictly prohibited.
>  If you have received this in error, please reply immediately to the sender and delete this message.  Thank you.
>
> _______________________________________________
>  osg-submissions mailing list
>  osg-submissions at lists.openscenegraph.org
>  http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>


More information about the osg-submissions mailing list