[vtkusers] Update vtkQtRenderInteractor

Craig N. Scott craig.scott at csiro.au
Sun Jun 27 19:33:22 EDT 2004


Not sure if this is your problem, but recently we encountered a similar
error message when using Qt with Vtk. We eventually tracked the cause of
it down to a few things that get #define'd in the X11 headers,
specifically in X.h. These #define'd symbols happened to be used by a
few Qt classes as enum values (symbols like None, Above, Below and
Unsorted). The really sticky part is that depending on what order you
#include your header files, you may or may not get this compiler
message.

We have notified Trolltech of this issue and they are looking into it.
In the meantime, try making sure all your Qt headers are included before
anything else and hope you don't need to reference any of the symbols
that X.h #define's (because they will then silently be converted to
integers that have different values to the enum's they represent in Qt).

HTH.


On Sat, 2004-06-26 at 06:53, Hualiang Zhong wrote:
>  
> Hello vtkusers,
>  
>  
>  I want to recompute polydata in vtkQtRenderInteractor based on mouse
> information, so I try to write a subclass which inherits both
> vtkQtRenderInteractor and my own C++ class (which includes the
> data for re-rendering).
>  
> But if I add my C++ header file into the subclass, it always generates
> an compiling error:
>  
> use -Wno-deprecated.
> In file included from /usr/lib/qt-3.1/include/qdict.h:42,
>                  from /usr/lib/qt-3.1/include/qstylesheet.h:45,
>                  from /usr/lib/qt-3.1/include/qtextedit.h:43,
>                  from simulator2.cpp:21:
> /usr/lib/qt-3.1/include/qgdict.h: In member function `QString
>    QGDictIterator::getKeyString() const':
> /usr/lib/qt-3.1/include/qgdict.h:203: parse error before numeric
> constant
>  
>  
> Thanks for any suggestions!
>  
> Hualiang Zhong
>  
-- 
Dr Craig Scott, CSIRO (CMIS)
Melbourne, Australia

Computers are easy to reboot. Attitudes are much harder.




More information about the vtkusers mailing list