Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Demonstration of how to dynamically populate models.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example
src
.gitignore
LICENSE
README
ftpmodel.png
ftpmodel.pro

README

This is a ftpmodel written for Trolltech's Qt version 4.2 or later.  The model demonstrates how to populate branches in a tree on the fly.  When the user clicks to open a folder fetchMore() will then query for the list of the contents of that directory.  The model wraps QFtp.  This is just a demo!
It doesn't implement renaming, drag/drop, or any convenience for uploading/downloading files.
But those can be added without much work if you want to take this and use it.

See http://doc.trolltech.com/model-view-programming.html for more information about Qt's model/view architecture.

This code is under the BSD license.
Something went wrong with that request. Please try again.