我安裝了QTCreator和Ubuntu SDK,如圖所示here。 當試圖運行提供的代碼示例here時,QTCreator告訴我它找不到Ubuntu.Components QML模塊。缺少Ubuntu.Components QML模塊
注意:
集結日誌說:
文件:///home/giladnaaman/Programming/Projects/CurrencyConverter/CurrencyConverter.qml:2模塊 「Ubuntu.Components」沒有安裝
但目錄/opt/qt5/imports/Ubuntu/Components
存在(和充滿文件)。
添加importPaths: [ "/opt/qt5/imports" ]
到qmlproject
文件後:
QML模塊不包含關於包含在插件組件的信息。
QMetaType :: registerType:二進制兼容性break - 'QPaintBufferCacheEntry'[1024]的類型標誌不匹配。以前註冊的TypeFlags(0x103),現在註冊TypeFlags(0x3)。
非常感謝你:) –