Important: Please read the Qt Code of Conduct -

QML XmlListModel source from qt resource file on android

  • Hello everybody,

    how can I access a xml file from the resource file on android. Are there any special settings that need to be taken. I've tried something like:

    @XmlListModel {
    source: "qrc:/file.xml"
    } @


    • qrc:///file.xml
    • :/file.xml
    • :///file.xml
    • file.xml
    • ...

    Resourse file is:
    <qresource prefix="/">
    <file alias="keyStorage">file.xml</file>

    I've added the resources in the .pro file.

  • Can you show us your resource file?

    From qml I would access it like this:

Log in to reply