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. QTreeWidget::ChildIndicatorPolicy prevents programmatic expansion of nodes
Forum Updated to NodeBB v4.3 + New Features

QTreeWidget::ChildIndicatorPolicy prevents programmatic expansion of nodes

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 644 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.
  • M Offline
    M Offline
    milgner
    wrote on last edited by
    #1

    After setting the ChildIndicatorPolicy of a QTreeWidget to QTreeWidgetItem::DontShowIndicator, it does not only hide the indicator but also the children and even prevents programmatic expansion of the nodes using setExpanded(true).
    What I would like to achieve is to not only hide the indicator (can be done using stylesheet, too) but to prevent users from collapsing the nodes, i.e. to have a tree view where all nodes are expanded at all times.

    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