Я думаю, вам нужно указать модуль QML, используя свойство \inqmlmodule
и файл module.qdocconf.
Пример для qdocconf:
/*!
\qmlmodule MyLib 2.0
\title MyLib 2.0 QML types
MyLib is a collection of types ...
...
*/
В вашем файле типов QML :
import QtQuick 2.10;
/*!
\qmltype CustomItem
\inherits Item
\inqmlmodule MyLib
...
*/
Item {
...
}
Для наследования вы можете добавить префикс типа к его модулю:
\inherits QtQuick::Item
Если ваш тип определен в классе C ++, также добавьте свойство \instanciates
:
\instanciates MyType
Полный пример:
/*!
\qmltype CustomType
\inqmlmodule MyLib
\inherits QtQuick::Item
\brief Provides a custom item type.
CustomType provides a component for use as ...
*/