The QTableSelection provides access to the selected area in a QTable. More...
List of all member functions.
The selection is a rectangular set of cells. One of the rectangle's cells is called the anchor cell; that cell is the first selected. The init() function sets the anchor and sets the selection rectangle to just that cell; the expandTo() function expands the selection rectangle.
There are various access functions to get the area: anchorRow() and anchorCol() return the achor's position, and leftCol(), rightCol(), topRow() and bottomRow() return the rectangle's four edges. All four are in 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() and QTable::selection().
Creates an inactive selection. Use init() and expandTo() to activate it.
Returns the anchor column of the selection.
Returns the anchor row of the selection.
Returns the bottom row of the selection.
Expands the selection to row, col. The new selection rectangle is the bounding rectangle of row, col and the old selection rectangle. After calling that function, the selections is active.
If you didn't call init() yet, this function does nothing.
See also init() and isActive().
Sets the selection anchor to row row and column col and sets the selection to just that cell.
See also expandTo() and isActive().
Returns whether the selection is active or not. A selection is active after init() and expandTo() has beem called.
Returns the left column of the selection.
Returns TRUE if s includes the same cells as this selection, or else FALSE.
Returns the right column of the selection.
Returns the top row of the selection.
Search the documentation, FAQ, qt-interest archive and more (uses
This file is part of the Qt toolkit, copyright © 1995-2005 Trolltech, all rights reserved.
|Copyright © 2005 Trolltech||Trademarks|
Qt version 2.3.10