Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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