1. 程式人生 > >[Qt] QML外掛模組生成plugins.qmltypes

[Qt] QML外掛模組生成plugins.qmltypes

QML外掛模組生成plugins.qmltypes

模組資料夾(/Im/Outputs/Qml/ImMultimedia)中的檔案:

暫時將外掛依賴的庫複製到模組資料夾同級目錄處(/Im/Outputs/Qml):

生成plugins.qmltypes:
/Applications/Qt5.10.1/5.10.1/clang_64/bin/qmlplugindump -nonrelocatable ImMultimedia 1.0 . > ImMultimedia/plugins.qmltypes

當前目錄:/Im/Outputs/Qml(qmlplugindump會在此目錄中載入外掛依賴的庫)

Qt詳細幫助文件:Using QML Modules with Plugins