Qmldesigner: metainfo file - How to use QmlSource



  • Hi all, does anyone know how to use the QmlSource type in a metainfo file?

    I tried :

    @
    Type {
    name: "CheckBoxList"
    icon: "item-icon16.png"

        ItemLibraryEntry {
            name: "CheckBox List"
            category: "Reach Components"
            libraryIcon: "item-icon.png"
            requiredImport: "components"
            QmlSource {source: "CheckBoxListSource.qml"}
        }
    }
    

    @

    I get an error in fileutils.cpp line 227. Looks like it wants a QRC resource, but I thought it would also work with a relative path to the .metainfo file.

    Thanks


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.