Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QML XmlListModel source from qt resource file on android
Forum Updated to NodeBB v4.3 + New Features

QML XmlListModel source from qt resource file on android

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LongJohn
    wrote on last edited by
    #1

    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"
    ///...
    } @

    and:

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

    Resourse file is:
    @<RCC>
    <qresource prefix="/">
    <file>main.qml</file>
    <file alias="keyStorage">file.xml</file>
    </qresource>
    </RCC>@

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

    1 Reply Last reply
    0
    • P Offline
      P Offline
      pkoretic
      wrote on last edited by
      #2

      Can you show us your resource file?

      From qml I would access it like this:
      qrc:///file.xml

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved