example
set QML2_IMPORT_PATH=d:\qt\imports
2.uri
From the QML2_IMPORT_PATH, the uri comes into play
with a uri of qml.test (case sensitive),
the directory structure shall be %QML2_IMPORT_PATH%\qml\test
3.qmldir
Under the directory %QML2_IMPORT_PATH%\qml\test,
you shall have qmldir,
where the bare minimum configuration contains
plugin yourDllPluginName
optional
module uri
4.qmlpluginsdump
qmlpluginsdump will
first look at QML2_IMPORT_PATH
then the uri
The following command shall dump some values
qmlpluginsdump qml.test 1.0
5.qmltypes
Generate qmltypes with qmlpluginsdump
qmlpluginsdump qml.test 1.0 d:\qt\imports\ > d:\qt\imports\qml\test\dllname.qmltypes
6. Append typeinfo logger.qmltypes to qmldir
Title case for module name is a must to work -
Need to use Logger instead of logger for qmlRegisterType
No comments:
Post a Comment