Selection behaviour of QTreeView

  • 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

    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.

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

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.