Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Model-View-Delegate Problem

    QML and Qt Quick
    mvc qml qtquick folderlistmodel filedialog
    1
    1
    683
    Loading More Posts
    • 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
      Anas A. Ismail last edited by Anas A. Ismail

      Hello everyone,
      I was extending the Photo Albums viewer recently, by making the app loads the images from local machine, I replaced the XmlListModel with FolderListModel, and set the folder property like this
      model: FilesModel { id: rssModel; folder: mainWindow.getFolderUrl()}
      where getFolderUrl(), is a method the returns fileDialog.fileUrl+"/"

      The main problem is when I load new folder, it makes all albums points to the same url.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post