<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QHash problems from 4.8 to 5.0.2]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I am trying to convert a project from 4.8 to 5.0.2 on Mac OS and I am getting this erros:</p>
<p dir="auto">@22:48:52: Configuration unchanged, skipping qmake step.<br />
22:48:52: Starting: "/usr/bin/make"<br />
clang++ -c -pipe -mmacosx-version-min=10.7 -stdlib=libc++ -std=gnu++0x -g -gdwarf-2 -Wall -W -fPIC -DCOMMON_LIBRARY -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_CORE_LIB -I../../../Qt5.0.2/5.0.2/clang_64/mkspecs/macx-clang-libc++ -I. -I../../../Qt5.0.2/5.0.2/clang_64/include -I../../../Qt5.0.2/5.0.2/clang_64/include/QtCore -I../../../Qt5.0.2/5.0.2/clang_64/lib/QtCore.framework/Versions/5/Headers -I. -o metadataiopriv.o src/metadataiopriv.cpp<br />
In file included from src/metadataiopriv.cpp:1:<br />
In file included from ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/QDebug:1:<br />
In file included from ../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qdebug.h:46:<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:107:35: error: call to 'qHash' is ambiguous<br />
Q_DECL_NOEXCEPT_EXPR(noexcept(qHash(t)))<br />
^~~~~<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qcompilerdetection.h:759:43: note: expanded from macro 'Q_DECL_NOEXCEPT_EXPR'</p>
<h1>define Q_DECL_NOEXCEPT_EXPR(x) noexcept(x)</h1>
<pre><code>                                      ^
</code></pre>
<p dir="auto">../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:878:13: note: in instantiation of exception specification for 'qHash<a target="_blank" rel="noopener noreferrer nofollow ugc">AbstractMetadata::DescriptorTypes</a>' requested here<br />
h = qHash(akey, d-&gt;seed);<br />
^<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:867:13: note: in instantiation of member function 'QHash&lt;AbstractMetadata::DescriptorTypes, QHashDummyValue&gt;::findNode' requested here<br />
return *findNode(akey) != e;<br />
^<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qset.h:90:64: note: in instantiation of member function 'QHash&lt;AbstractMetadata::DescriptorTypes, QHashDummyValue&gt;::contains' requested here<br />
inline bool contains(const T &amp;value) const { return q_hash.contains(value); }<br />
^<br />
src/metadataiopriv.cpp:457:17: note: in instantiation of member function 'QSet<a target="_blank" rel="noopener noreferrer nofollow ugc">AbstractMetadata::DescriptorTypes</a>::contains' requested here<br />
if(descTypes.contains(entry.descriptorType()) &amp;&amp; firstCts &lt;= entry.ctsMs() &amp;&amp; lastCts &gt;= entry.ctsMs())<br />
^<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:86:13: note: candidate function<br />
inline uint qHash(QChar key, uint seed = 0) Q_DECL_NOTHROW { return qHash(key.unicode(), seed); }<br />
^<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:108:11: error: call to 'qHash' is ambiguous<br />
{ return (qHash(t) ^ seed); }<br />
^~~~~<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:878:13: note: in instantiation of function template specialization 'qHash<a target="_blank" rel="noopener noreferrer nofollow ugc">AbstractMetadata::DescriptorTypes</a>' requested here<br />
h = qHash(akey, d-&gt;seed);<br />
^<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:867:13: note: in instantiation of member function 'QHash&lt;AbstractMetadata::DescriptorTypes, QHashDummyValue&gt;::findNode' requested here<br />
return *findNode(akey) != e;<br />
^<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qset.h:90:64: note: in instantiation of member function 'QHash&lt;AbstractMetadata::DescriptorTypes, QHashDummyValue&gt;::contains' requested here<br />
inline bool contains(const T &amp;value) const { return q_hash.contains(value); }<br />
^<br />
src/metadataiopriv.cpp:457:17: note: in instantiation of member function 'QSet<a target="_blank" rel="noopener noreferrer nofollow ugc">AbstractMetadata::DescriptorTypes</a>::contains' requested here<br />
if(descTypes.contains(entry.descriptorType()) &amp;&amp; firstCts &lt;= entry.ctsMs() &amp;&amp; lastCts &gt;= entry.ctsMs())<br />
^<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:64:13: note: candidate function<br />
inline uint qHash(ushort key, uint seed = 0) Q_DECL_NOTHROW { return uint(key) ^ seed; }<br />
^<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:67:13: note: candidate function<br />
inline uint qHash(int key, uint seed = 0) Q_DECL_NOTHROW { return uint(key) ^ seed; }<br />
^<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:66:13: note: candidate function<br />
inline uint qHash(uint key, uint seed = 0) Q_DECL_NOTHROW { return key ^ seed; }<br />
^<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:68:13: note: candidate function<br />
inline uint qHash(ulong key, uint seed = 0) Q_DECL_NOTHROW<br />
^<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:76:13: note: candidate function<br />
inline uint qHash(long key, uint seed = 0) Q_DECL_NOTHROW { return qHash(ulong(key), seed); }<br />
^<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:77:13: note: candidate function<br />
inline uint qHash(quint64 key, uint seed = 0) Q_DECL_NOTHROW<br />
^<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:85:13: note: candidate function<br />
inline uint qHash(qint64 key, uint seed = 0) Q_DECL_NOTHROW { return qHash(quint64(key), seed); }<br />
^<br />
../../../Qt5.0.2/5.0.2/clang_64/include/QtCore/qhash.h:86:13: note: candidate function<br />
inline uint qHash(QChar key, uint seed = 0) Q_DECL_NOTHROW { return qHash(key.unicode(), seed); }<br />
^<br />
2 errors generated.<br />
make: *** [metadataiopriv.o] Error 1<br />
22:48:53: The process "/usr/bin/make" exited with code 2.<br />
Error while building/deploying project common (kit: Desktop Qt 5.0.2 clang 64bit)<br />
When executing step 'Make'<br />
22:48:53: Elapsed time: 00:01.@</p>
<p dir="auto">Can anyone help me with this issue?</p>
]]></description><link>https://forum.qt.io/topic/28098/qhash-problems-from-4-8-to-5-0-2</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 20:25:00 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/28098.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 08 Jun 2013 21:53:30 GMT</pubDate><ttl>60</ttl></channel></rss>