Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Grouped Listview like Windows Explorer

    General and Desktop
    2
    3
    1076
    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.
    • P
      philk last edited by

      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

      1 Reply Last reply Reply Quote 0
      • T
        thEClaw last edited by

        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 .

        1 Reply Last reply Reply Quote 0
        • P
          philk last edited by

          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.

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