"autoCheckParent"
Sets how a parent node should react if the checked state of his child nodes changes.
Synopsis
shape.autoCheckParent(bool check);
Parameter
Parameter | Description |
---|---|
shape | Name of the object |
check | Boolean value that defines whether the check state of the parent node changes on child node checked state changes or if they should not be considered. |
Description
autoCheckParent defines whether the checked state of the parent node inside a tree widget should change with the checked state change of a child node or not.
If the value is set to true, the checked state of the parent node does change when a child node changes its state. Depending on the number of checked child nodes, the parent node is displayed differently. Following states are possible for a parent node:
-
No child node selected => parent node not selected
-
All child nodes selected => parent node selected
-
Some child nodes selected => parent node is partially selected
If the value is set to false, the node does not automatically match the child node states. If the node is not explicitly set, it behaves as if it is selected partially.
Assignment
Tree Widget