Skip to content
Demonstration of how to dynamically populate models.
C++ Prolog
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


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 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.