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. QTreeView - Expanded and collapsed items
Forum Updated to NodeBB v4.3 + New Features

QTreeView - Expanded and collapsed items

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 841 Views 1 Watching
  • 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.
  • V Offline
    V Offline
    Veaceslav
    wrote on last edited by
    #1

    Hello,

    I need 2 options for my model:

    1. expand or collapse everything with one level
    2. Invert selection, but I don't want all items to be selected only the ones that can be seen (even by scrolling)

    For the first one, I can use expandtoDepth, but I miss the point where Tree won't expand anymore, since it doesn't return if something was expanded.

    For the second one, I know how to select items, but I want to select items that are not hidden because it's parent isn't expanded.

    How can I implement this?

    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