Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |
The QTableSelection class provides access to a selected area in a QTable. More...
#include <qtable.h>
The selection is a rectangular set of cells in a QTable. One of the rectangle's cells is called the anchor cell; this is the cell that was selected first. The init() function sets the anchor and the selection rectangle to exactly this cell; the expandTo() function expands the selection rectangle to include additional cells.
There are various access functions to find out about the area: anchorRow() and anchorCol() return the anchor's position; leftCol(), rightCol(), topRow() and bottomRow() return the rectangle's four edges. All four are part of the selection.
A newly created QTableSelection is inactive -- isActive() returns FALSE. You must use init() and expandTo() to activate it.
See also QTable, QTable::addSelection(), QTable::selection(), QTable::selectCells(), QTable::selectRow(), QTable::selectColumn(), and Advanced Widgets.
Returns the anchor column of the selection.
See also anchorRow() and expandTo().
Returns the anchor row of the selection.
See also anchorCol() and expandTo().
Returns the bottom row of the selection.
See also topRow(), leftCol(), and rightCol().
If you haven't called init(), this function does nothing.
See also init() and isActive().
To extend the selection to include additional cells, call expandTo().
See also isActive().
Returns whether the selection is active or not. A selection is active after init() and expandTo() have been called.
Returns whether the selection is empty or not.
See also numRows() and numCols().
Returns the left column of the selection.
See also topRow(), bottomRow(), and rightCol().
See also numRows().
Returns the number of rows in the selection.
See also numCols().
Returns TRUE if s does not include the same cells as the selection; otherwise returns FALSE.
Returns the right column of the selection.
See also topRow(), bottomRow(), and leftCol().
Returns the top row of the selection.
See also bottomRow(), leftCol(), and rightCol().
This file is part of the Qt toolkit. Copyright © 1995-2003 Trolltech. All Rights Reserved.
Copyright © 2003 Trolltech | Trademarks | Qt version 3.2.0b2
|