<?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[QDoc probelm: no Qt-specific types are detected.]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I've the following problem when using qdoc:<br />
everything that has to do with qt-specific types like "<em>qreal</em>". "<em>QString</em>" etc. is not recognized. The generated files show only "<em>int</em>" as type.<br />
When using the \fn tag there is a warning:</p>
<pre><code>(qdoc) warning: clang couldn't find function when parsing \fn qreal MyClass::sampleFunc(qreal input)
</code></pre>
<p dir="auto">I'm very new to QDoc so I'm a little lost here.</p>
]]></description><link>https://forum.qt.io/topic/139406/qdoc-probelm-no-qt-specific-types-are-detected</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Nov 2026 17:24:35 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139406.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 18 Sep 2022 14:56:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QDoc probelm: no Qt-specific types are detected. on Fri, 25 Nov 2022 21:20:46 GMT]]></title><description><![CDATA[<p dir="auto">Hm, strange. When I use qdoc-6 it works as intended. Maybe something is broken.</p>
]]></description><link>https://forum.qt.io/post/737750</link><guid isPermaLink="true">https://forum.qt.io/post/737750</guid><dc:creator><![CDATA[Ankalagon]]></dc:creator><pubDate>Fri, 25 Nov 2022 21:20:46 GMT</pubDate></item><item><title><![CDATA[Reply to QDoc probelm: no Qt-specific types are detected. on Mon, 19 Sep 2022 18:33:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joecfd">@<bdi>JoeCFD</bdi></a></p>
<pre><code>MyClass *mc = MyClass::instance();
qDebug() &lt;&lt; mc-&gt;sampleFunc(1);
</code></pre>
]]></description><link>https://forum.qt.io/post/729345</link><guid isPermaLink="true">https://forum.qt.io/post/729345</guid><dc:creator><![CDATA[Ankalagon]]></dc:creator><pubDate>Mon, 19 Sep 2022 18:33:54 GMT</pubDate></item><item><title><![CDATA[Reply to QDoc probelm: no Qt-specific types are detected. on Mon, 19 Sep 2022 18:23:36 GMT]]></title><description><![CDATA[<p dir="auto">I'm using Qt 5.15.2 on openSUSE 15.3</p>
]]></description><link>https://forum.qt.io/post/729341</link><guid isPermaLink="true">https://forum.qt.io/post/729341</guid><dc:creator><![CDATA[Ankalagon]]></dc:creator><pubDate>Mon, 19 Sep 2022 18:23:36 GMT</pubDate></item><item><title><![CDATA[Reply to QDoc probelm: no Qt-specific types are detected. on Mon, 19 Sep 2022 18:08:17 GMT]]></title><description><![CDATA[<p dir="auto">Which version of Qt are you using ?<br />
On which OS ?</p>
]]></description><link>https://forum.qt.io/post/729335</link><guid isPermaLink="true">https://forum.qt.io/post/729335</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 19 Sep 2022 18:08:17 GMT</pubDate></item><item><title><![CDATA[Reply to QDoc probelm: no Qt-specific types are detected. on Mon, 19 Sep 2022 18:01:43 GMT]]></title><description><![CDATA[<p dir="auto">Just curious(not doc related):  how can sampleFunc(qreal input) be called since m_pThis is static?</p>
]]></description><link>https://forum.qt.io/post/729334</link><guid isPermaLink="true">https://forum.qt.io/post/729334</guid><dc:creator><![CDATA[JoeCFD]]></dc:creator><pubDate>Mon, 19 Sep 2022 18:01:43 GMT</pubDate></item><item><title><![CDATA[Reply to QDoc probelm: no Qt-specific types are detected. on Mon, 19 Sep 2022 17:29:12 GMT]]></title><description><![CDATA[<p dir="auto">Sadly that doesnt change anything.</p>
]]></description><link>https://forum.qt.io/post/729331</link><guid isPermaLink="true">https://forum.qt.io/post/729331</guid><dc:creator><![CDATA[Ankalagon]]></dc:creator><pubDate>Mon, 19 Sep 2022 17:29:12 GMT</pubDate></item><item><title><![CDATA[Reply to QDoc probelm: no Qt-specific types are detected. on Sun, 18 Sep 2022 20:16:33 GMT]]></title><description><![CDATA[<p dir="auto">Shouldn't fn be the first line ?</p>
]]></description><link>https://forum.qt.io/post/729220</link><guid isPermaLink="true">https://forum.qt.io/post/729220</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 18 Sep 2022 20:16:33 GMT</pubDate></item><item><title><![CDATA[Reply to QDoc probelm: no Qt-specific types are detected. on Sun, 18 Sep 2022 19:51:08 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, forgot about that.</p>
<p dir="auto">myclass.h:</p>
<pre><code>#ifndef MYCLASS_H
#define MYCLASS_H

#include &lt;QtCore&gt;
#include &lt;QObject&gt;
#include &lt;QQuickItem&gt;

class MyClass : public QObject
{
    Q_OBJECT
    Q_DISABLE_COPY(MyClass)
    QML_SINGLETON
public:
    explicit MyClass(QObject *parent = nullptr);
    static MyClass *instance();
    static QObject* qmlInstance(QQmlEngine *engine, QJSEngine* scriptEngine);
    void registerTypes() {
        qmlRegisterSingletonType&lt;MyClass&gt;("MyClass",1,0,"MyClass",&amp;MyClass::qmlInstance);
    }
    qreal sampleFunc(qreal input);
private:
    static MyClass *m_pThis;
};

#endif // MYCLASS_H

</code></pre>
<p dir="auto">myclass.cpp:</p>
<pre><code>#include "myclass.h"

MyClass *MyClass::m_pThis = nullptr;
MyClass *MyClass::instance() {
    if(m_pThis == nullptr) {
        m_pThis = new MyClass;
    }
    return m_pThis;
}

MyClass::MyClass(QObject *parent)
    : QObject(parent)
{
    registerTypes();
}
/*!
 * \brief MyClass::sampleFunc.
 * \fn qreal MyClass::sampleFunc(qreal input)
 * \a input
 */
qreal MyClass::sampleFunc(qreal input) {
    return input;
}

</code></pre>
<p dir="auto">MyClass.qdoc:</p>
<pre><code>/*!
  \class MyClass
  \inmodule MyClass
  \title MyClass
  */ 
</code></pre>
<p dir="auto">MyClass.qdocconf:</p>
<pre><code>project = MyClass
description = MyClass Doc

sourcedirs = .
headerdirs = .

sources.fileextensions = "*.cpp *.qdoc *.mm *.qml"
headers.fileextensions = "*.h *.ch *.h++ *.hh *.hpp *.hxx"


outputdir  =    ./html
outputformats = HTML

</code></pre>
]]></description><link>https://forum.qt.io/post/729218</link><guid isPermaLink="true">https://forum.qt.io/post/729218</guid><dc:creator><![CDATA[Ankalagon]]></dc:creator><pubDate>Sun, 18 Sep 2022 19:51:08 GMT</pubDate></item><item><title><![CDATA[Reply to QDoc probelm: no Qt-specific types are detected. on Sun, 18 Sep 2022 19:08:28 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Can you share the header and code of that class ?<br />
From the looks of it, it seems to not find the implementation of the function.</p>
]]></description><link>https://forum.qt.io/post/729212</link><guid isPermaLink="true">https://forum.qt.io/post/729212</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 18 Sep 2022 19:08:28 GMT</pubDate></item></channel></rss>