QDoc: Add \qmluncreatabletype topic command


Introduces the \qmluncreatabletype command for explicitly documenting
QML types that are registered with the QML type system but cannot be
instantiated directly in QML. The command is functionally identical to
\qmltype, but unconditionally marks the type as uncreatable, regardless
of the C++ implementation.

The generated documentation displays an "(Uncreatable)" indicator in
the type title along with an explanatory note.

For C++ types using the QML_UNCREATABLE macro, \qmltype remains the
preferred command, as QDoc automatically detects the uncreatable nature
from the C++ source.

Move the responsibility of setting the automatically-detected attributes
from CppCodeParser::processQmlNativeTypeCommand() to
QmlTypeNode::setClassNode(). This way, QmlTypeNode has control over
its attributes when the C++/QML type relationship is created.

The QML_UNCREATABLE macro accepts a `REASON` argument for runtime
error reporting purposes. This is not replicated in the documentation
as these messages often do not use consistent language. Further
explanation beyond the type being uncreatable is left for the
documentation author.

[ChangeLog][QDoc] QDoc now detects QML_UNCREATABLE macro and also has
a \qmluncreatabletype topic command to explicitly document a QML type
as uncreatable.

Fixes: QTBUG-144345
Change-Id: I2254df5f9714ee648d73d58209ec56f0c9051ba7
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
commitad652e3fcb806e013b423dab83cb222fda8879fd
parentcd99693856fd137a23259c258045276bb5339cc5
authorTopi Reinio <topi.reinio@qt.io>
committerTopi Reinio <topi.reinio@qt.io>
commit timeWed, 22 Apr 2026 11:41:06 +0000