Grid Class

Grid implements table view widget. It can be added into any Qt form as a common QWidget. More...

Header: #include <Grid>
Inherits: GridBase

Public Types

enum GridViewType { UndefinedView, TableView, BandedTableView, TableViewVertical, BandedTableViewVertical }

Public Functions

void setViewType(Grid::GridViewType type)
Grid::GridViewType viewType() const

Detailed Description

It is descendant of QWidget so you can use any QWidget's pattern to locate grid into the layout of other widget. After class was created you need to specify the type of view wich will be used to show data. The Qt-model's should be attached to this view. Not to this class directly.

Member Type Documentation

enum Grid::GridViewType

The enumerator describes types of views that are supported by the grid.

ConstantValueDescription
Grid::UndefinedView0view is not defined.
Grid::TableView1Simple type of view is a regualr table. The columns on one level.
Grid::BandedTableView2Complex type of view with the column-bands. Has the ability for grouping columns into the bands.
Grid::TableViewVertical3Implements the behaviour of TableView. The rows are arranged vertically.
Grid::BandedTableViewVertical4Implements the behaviour of BandedTableView. The rows are arranged vertically.

Member Function Documentation

void Grid::setViewType(Grid::GridViewType type)

Sets the view type for the current Grid. The view might be table view or banded table view. Banded table view allows grouping the columns into the logical structure called bands. The band looks like ordinary column but has no the related cells.

Note: Setter function for property viewType.

See also viewType() and view().

Grid::GridViewType Grid::viewType() const

Returns the view type for the Grid.

Note: Getter function for property viewType.

See also setViewType().