Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Hide/Show data groups in a list view
Forum Updated to NodeBB v4.3 + New Features

Hide/Show data groups in a list view

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 471 Views
  • 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.
  • saitejS Offline
    saitejS Offline
    saitej
    wrote on last edited by
    #1

    Hi

    I am a having a working list model based on QAbstractListModel. I have grouped the data in the model based on a role and given headings for each group in qml as shown here. The Image only shows part of the data there are many more groups following same pattern.

    I want to hide and show a particular group data on the click of the heading element. I have tried implement QSortFilterProxyModel. When I tried using the filter model even the headings are hidden which is essential for showing the data on click.How do I implement this?

    Thanks

    1 Reply Last reply
    0
    • m.sueM Offline
      m.sueM Offline
      m.sue
      wrote on last edited by
      #2

      Hi,
      it looks like a special kind of tree view, though I am not sure you can modify QTreeView in a way that allows it show the data as in your image.
      -Michael.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved