Grouped Listview like Windows Explorer
-
Is it possible to design something like this using a QListView?
!http://imageshack.us/a/img7/9944/jz26.png/(Grouped Listview)!
I would think that with a custom model its possible. But how would I create the group dividers? They need to stretch all the way across the control
-
I suggest using a customized QTreeView in conjunction with a (highly) customized QStyledItemDelegate. All the design is contained in the latter one, and I would consider it quite a task to do what you plan to.
There is a nice example regarding "QStyledItemDelegate":http://qt-project.org/doc/qt-5.1/qtwidgets/qstyleditemdelegate.html available, the "Star Delegate Example":http://qt-project.org/doc/qt-5.1/qtwidgets/itemviews-stardelegate.html .
-
This is not good, it sounds way to complicated. I think I will just use the native win32 listview then. Its magnitudes faster than QTV and QLV anyway.