这里写自定义目录标题
参考https://www.jianshu.com/p/163666976f96
void ZNModulePlugin::registerTypes(const char *uri)
{
// @uri ZNModule
Q_INIT_RESOURCE(qml);
int major = 1;
int minor = 0;
qmlRegisterType(QUrl("qrc:/component/ZAvatar.qml") ,uri,major,minor,"ZAvatar");
qmlRegisterType(QUrl("qrc:/component/ZTextButton.qml") ,uri,major,minor,"ZTextButton");
qmlRegisterType(QUrl("qrc:/component/ZCheckBox.qml") ,uri,major,minor,"ZCheckBox");
qmlRegisterType(QUrl("qrc:/component/ZHeader.qml") ,uri,major,minor,"ZHeader");
qmlRegisterType(QUrl("qrc:/component/ZHorizontalMenu.qml") ,uri,major,minor,"ZHorizontalMenu");
qmlRegisterType(QUrl("qrc:/component/ZIconButton.qml") ,uri,major,minor,"ZIconButton");
qmlRegisterType(QUrl("qrc:/component/ZInputField.qml") ,uri,major,minor,"ZInputField");
qmlRegisterType(QUrl("qrc:/component/ZHorizontalMenu.qml") ,uri,major,minor,"ZHorizontalMenu");
qmlRegisterType(QUrl("qrc:/component/ZList.qml") ,uri,major,minor,"ZList");
qmlRegisterType(QUrl("qrc:/component/ZVerticalMenu.qml") ,uri,major,minor,"ZVerticalMenu");
qmlRegisterType(QUrl("qrc:/component/ZIconTextButton.qml") ,uri,major,minor,"ZIconTextButton");
qmlRegisterType(QUrl("qrc:/component/ZTextInput.qml") ,uri,major,minor,"ZTextInput");
}