TreeGrid Class
TreeGrid implements tree view widget. It can be added into any Qt form as a common QWidget. More...
Header: | #include <TreeGrid> |
Inherits: | GridBase |
Public Types
enum | GridViewType { UndefinedView, TreeView, BandedTreeView } |
Public Functions
void | setViewType(TreeGrid::GridViewType type) |
TreeGrid::GridViewType | viewType() const |
Detailed Description
Member Type Documentation
enum TreeGrid::GridViewType
The enumerator describes types of views that are supported by the tree grid.
Constant | Value | Description |
---|---|---|
TreeGrid::UndefinedView | 0 | view is not defined. |
TreeGrid::TreeView | 1 | Simple type of view is a regualr table. The columns on one level. |
TreeGrid::BandedTreeView | 2 | Complex type of view with the column-bands. Has the ability for grouping columns into the bands. |
Member Function Documentation
void TreeGrid::setViewType(TreeGrid::GridViewType type)
Sets the view type for the current TreeGrid. By analogy with the Qtitan::Grid, the view might be regular view or banded view. Banded view allows grouping the columns into the logical structure called bands. The band column looks like ordinary column but has no the related cells.
Note: Setter function for property viewType.
See also viewType() and view().
TreeGrid::GridViewType TreeGrid::viewType() const
Returns the view type for the TreeGrid.
Note: Getter function for property viewType.
See also setViewType().