Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.3.1, 6.4.0 Beta1
-
None
-
f71aeea932 (qt/qtbase/dev) f71aeea932 (qt/tqtc-qtbase/dev) b5dc2f2fef (qt/tqtc-qtbase/6.2) 34751307bf (qt/qtbase/6.4) 34751307bf (qt/tqtc-qtbase/6.4) f46b3e002d (qt/qtbase/6.3) f46b3e002d (qt/tqtc-qtbase/6.3) b2729d3bc1 (qt/tqtc-qtbase/5.15)
Description
Q_WEAK_OVERLOAD was introduced in Qt 6 to resolve the conflict between different overloads by marking one of them as 'weak'. Technically, this is done by marking it as a template:
#define Q_WEAK_OVERLOAD template <typename = void>
qdoc takes this literally, and documents the template type, so
Q_WEAK_OVERLOAD explicit QXmlStreamReader(const QByteArray &data)
becomes documented as
template <typename> QXmlStreamReader::QXmlStreamReader(const QByteArray &data)
This is confusing, and it would be better if qdoc would just redefine Q_WEAK_OVERLOAD to empty.