<?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[Issues with qobject.h file]]></title><description><![CDATA[<p dir="auto">Hello all,<br />
Till yesterday all my Qt applications were working fine. Today, while developing qt application all of a sudden I got the error Messages.<br />
@<br />
"error: 'bool QtPrivate::QSlotObjectBase::Compare(void**)' conflicts with a previous declaration<br />
inline bool Compare(void **a) { bool ret; m_impl(Compare, this, 0, a, &amp;ret); return ret; }</p>
<p dir="auto">"error: cannot convert 'QtPrivate::QSlotObjectBase::Compare' from type 'bool (QtPrivate::QSlotObjectBase::)(void**)' to type 'int'<br />
inline bool Compare(void **a) { bool ret; m_impl(Compare, this, 0, a, &amp;ret); return ret; }</p>
<p dir="auto">error: 'bool QtPrivate::QSlotObjectBase::Compare(void**)' cannot appear in a constant-expression<br />
case Compare:<br />
@</p>
<p dir="auto">Even my previous qt application are not working .showing the same error. I have no idea what is the mistake i have done. Can any one help me to get out of this Problem?<br />
Thanks</p>
<p dir="auto">[andreyc EDIT]: Added @ around code.</p>
]]></description><link>https://forum.qt.io/topic/50809/issues-with-qobject-h-file</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 00:22:21 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/50809.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Feb 2015 13:23:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Issues with qobject.h file on Wed, 04 Feb 2015 00:35:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi, just guessing but could the problem be you've by accident edited one of Qt's internal files?<br />
I'm thinking of <em>qobject_impl.h</em> in my case it's in the directory<br />
C:\Qt\5.4\mingw491_32\include\QtCore. If you open that file, check line 123, is it like this:<br />
@<br />
...<br />
inline bool Compare(void **a) { bool ret; m_impl(Compare, this, 0, a, &amp;ret); return ret; }<br />
...<br />
@</p>
<p dir="auto">if so change it back to the original:<br />
@<br />
inline bool compare(void **a) { bool ret; m_impl(Compare, this, 0, a, &amp;ret); return ret; }<br />
@</p>
]]></description><link>https://forum.qt.io/post/260278</link><guid isPermaLink="true">https://forum.qt.io/post/260278</guid><dc:creator><![CDATA[hskoglund]]></dc:creator><pubDate>Wed, 04 Feb 2015 00:35:15 GMT</pubDate></item><item><title><![CDATA[Reply to Issues with qobject.h file on Tue, 03 Feb 2015 23:15:17 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">You should add which version of Qt you are using as well as OS and compiler</p>
]]></description><link>https://forum.qt.io/post/260272</link><guid isPermaLink="true">https://forum.qt.io/post/260272</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 03 Feb 2015 23:15:17 GMT</pubDate></item></channel></rss>