QML in Qt 4.7.0 will feature elements for using QAbstractItemModels which are really lists. It is not possible to directly display a treeview on a hierarchical model. There are several good reasons for this.
- It is difficult to define an API that will stand the test of time. NQDF don’t want to get it wrong early and have to maintain something broken.
- It is difficult technically. There are other important things to do before release, and this would be a time-stealer.
- It is not yet certain from a user interaction point-of-view where trees will be relevant in mobile UIs, including how to navigate one and how to visually represent it.
For those of us already prototyping though, some solution is needed. As a first iteration of a user interaction design, we’ve been experimenting with the use of breadcrumbs to navigate the view.
Unfortunately the video capture is not very smooth, but there is an animation when selecting a breadcrumb. For illustration purposes, the selection made in the qml environment in mirrored in a QTreeView on the left.
As this is very new, we would really like feedback about navigating the tree this way. This could be part of your next mobile email client, so now is your chance to help us make it more intuitive. We might consider user feedback on this stuff in a more formal way later.
- Is your understanding of the current position in the tree clear?
- Is it clear to you how to move “up” the tree?
- Is it clear to you how to move “down” the tree?
- Do the animations help your understanding of navigating the tree?
If you can’t compile code and don’t have a N900, feedback from watching the video is welcome. To compile the example on your computer (requires unreleased version of Qt 4.7):
svn co svn://anonsvn.kde.org/home/kde/trunk/KDE/kdepim/runtime/qml/kde/tests/qmlbreadcrumbnavigation mkdir build && cd build cmake .. make ./qml_nav
If you already have a N900 with Qt4.7, you can try out the demo by running the example from the tarball here.
Let us know what you think!