Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. FolderListModel is not updated when folder name is changed

FolderListModel is not updated when folder name is changed

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 908 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.
  • K Offline
    K Offline
    knro
    wrote on last edited by
    #1

    I have a simple image viewer that defaults to a folder on startup. I assign image filter based on which TabBar is currently selected to filter what kind of images to display. The problem is that if I change the folder name directly from another QML file, either the FolderListModel or ListView is not updated. I added an explicitly refresh() function but the folder model is not updated either and no images are displayed.

    This is the QML file that renders the view:

    https://github.com/knro/chartdownloader/blob/master/qml/PhotoViewer.qml

    1 Reply Last reply
    0
    • ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      Hi,
      I have cloned your project but there is not .pro file
      LA

      1 Reply Last reply
      0
      • Aleksey_KA Offline
        Aleksey_KA Offline
        Aleksey_K
        wrote on last edited by
        #3

        Have You solved the issue?!

        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