qml自定义模块及qdir

模块的定义qmldir

​ Module MyModule

MyTest  1.0  MyTest.qml

MyTest  1.3  MyTest.qml

导入

使用qrc

RESOURCE += qml.qrc \

MyMoudule/mymodule.qrc;

QML_IMPORT_PATH += $$PWD

使用

​ Import MyModule

# qml  

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×