[Paraview] Current Version of Qt for CVS HEAD
OSHIMA Takuya
oshima at eng.niigata-u.ac.jp
Wed Feb 20 08:21:12 EST 2008
Hi,
I had the same problem with Qt 4.2.3 when I tried to compile the 3.3
CVS head with VS2008. It looks like it's been fixed after I pulled
this snippet from Qt4.3.3 and appended at around the line 85 of
paraview-qt-win-opensource-4.2.3/src/corelib/tools/qhash.h:
template <typename T1, typename T2> inline uint qHash(const QPair<T1, T2> &key)
{
uint h1 = qHash(key.first);
uint h2 = qHash(key.second);
return ((h1 << 16) | (h1 >> 16)) ^ h2;
}
By the way, when I used Qt 4.3.3 instead, If I click the VCR Play
button it just grayed out and doesn't change to the Pause button. So I
have to play all the sequence of the animation until the end. I have
this problem also under Linux and Mac OS X 10.5.2 (Intel). Is this a
known issue, or does anyone have a solution?
Regards,
Takuya
> Date: Tue, 19 Feb 2008 18:16:06 -0500
> From: Mike Jackson <imikejackson at gmail.com>
> Subject: [Paraview] Current Version of Qt for CVS HEAD
>
> What version of Qt is expected for ParaView CVS HEAD? I am trying to
> build against Qt 4.2.3 on OS X 10.4.11 (intel) and I am getting the
> following error:
>
> [ 92%] Building CXX object Qt/Components/CMakeFiles/pqComponents.dir/
> pqCompositeDataTreeWidget.o
> /Users/Shared/Toolkits/Qt-4.2.3-UBLib/include/QtCore/qhash.h: In
> member function 'typename QHash<K, V>::Node** QHash<K, V>::findNode
> (const Key&, uint*) const [with Key = QPair<unsigned int, unsigned
> int>, T = QHashDummyValue]':
> /Users/Shared/Toolkits/Qt-4.2.3-UBLib/include/QtCore/qhash.h:687:
> instantiated from 'typename QHash<K, V>::iterator QHash<K, V>::insert
> (const Key&, const T&) [with Key = QPair<unsigned int, unsigned int>,
> T = QHashDummyValue]'
> /Users/Shared/Toolkits/Qt-4.2.3-UBLib/include/QtCore/qset.h:152:
> instantiated from 'QSet<V>::const_iterator QSet<V>::insert(const T&)
> [with T = QPair<unsigned int, unsigned int>]'
> /Users/Shared/Kitware-CVS/ParaView3/Qt/Components/
> pqCompositeDataTreeWidget.cxx:220: instantiated from here
> /Users/Shared/Toolkits/Qt-4.2.3-UBLib/include/QtCore/qhash.h:803:
> error: no matching function for call to 'qHash(const QPair<unsigned
> int, unsigned int>&)'
> /Users/Shared/Toolkits/Qt-4.2.3-UBLib/include/QtCore/
> qabstractitemmodel.h:350: note: candidates are: uint qHash(const
> QModelIndex&)
More information about the ParaView
mailing list