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.

ConstantValueDescription
TreeGrid::UndefinedView0view is not defined.
TreeGrid::TreeView1Simple type of view is a regualr table. The columns on one level.
TreeGrid::BandedTreeView2Complex 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().