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. Selection behaviour of QTreeView
Forum Updated to NodeBB v4.3 + New Features

Selection behaviour of QTreeView

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 804 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.
  • G Offline
    G Offline
    GAURAV PANT
    wrote on last edited by
    #1

    Hi,
    I have a tree view with checkboxes.
    setTristate property og checkboxes are true means they can have 3 states.
    my tree view is like this
    @A
    |__B
    |__C@

    Now i want if parent get selected then all its children and sub childrens also get selected and if parent get unchecked then all its childrens get disselected.
    Is there any inbuilt Qt function to do this.

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      You can just edit topic instead of duplicating. I'll delete old one.

      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