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 FolderListModel problem on Android
Qt 6.11 is out! See what's new in the release blog

QML FolderListModel problem on Android

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 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.
  • A Offline
    A Offline
    amilosavljevic
    wrote on last edited by
    #1

    I have problem with FolderListModel QML element on Android. FolderListModel works fine when I set "folder" property to some "external" path (e.g. "file:///sdcard/Test/"), but when I try to set local path relative to QML file (these files are deployed to assets) the model stays empty.

    The same code works fine on Windows. I also tried absolute ("assets:/qml/...") and relative variations with no success.

    I use Qt 5.2.1 and FolderListModel 2.0 (import Qt.labs.folderlistmodel 2.0). I should also mention that I can open corresponding files (images) using relative path, and that there are no errors on debug output, but model remains empty.

    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