QTableWidgetSelectionRange Class Reference
[QtGui module]
该QTableWidgetSelectionRange类提供了一种与选择的模型,而无需使用模型索引和选择模型进行交互。More…
Methods
__init__ (self)
__init__ (self, int top, int left, int bottom, int right)
__init__ (self, QTableWidgetSelectionRange other)
int bottomRow (self)
int columnCount (self)
int leftColumn (self)
int rightColumn (self)
int rowCount (self)
int topRow (self)
Detailed Description
该QTableWidgetSelectionRange类提供了一种与选择的模型,而无需使用模型索引和选择模型进行交互。
该QTableWidgetSelectionRange类存储左上角和表中的右下方的行数和选择范围的列。在表中的选项可以由几个选择范围。
Note:如果选择范围内的项目被标记为不可选,例如,itemFlags() & Qt.ItemIsSelectable == 0
那么就不会出现在选择范围内。
Method Documentation
QTableWidgetSelectionRange.__init__ (self)
构造一个表的选择范围,即其范围rowCount()和columnCount()均为0。
QTableWidgetSelectionRange.__init__ (self, int top, int left, int bottom, int right)
构建表选择范围从给定的top,left,bottom和right表的行和列。
See also topRow( )leftColumn( )bottomRow()和rightColumn( ) 。
QTableWidgetSelectionRange.__init__ (self, QTableWidgetSelectionRange other)
通过复制特定构造一个表中选择范围other表的选择范围。
int QTableWidgetSelectionRange.bottomRow (self)
返回范围的最下面一行。
See also topRow( )rightColumn()和rowCount( ) 。
int QTableWidgetSelectionRange.columnCount (self)
返回的列的范围内的数目。
这等效于rightColumn() - leftColumn()+ 1 。
这个函数是Qt 4.1中引入。
See also rowCount( )leftColumn()和rightColumn( ) 。
int QTableWidgetSelectionRange.leftColumn (self)
返回范围的左栏。
See also rightColumn( )topRow()和columnCount( ) 。
int QTableWidgetSelectionRange.rightColumn (self)
返回该范围的右列。
See also leftColumn( )bottomRow()和columnCount( ) 。
int QTableWidgetSelectionRange.rowCount (self)
返回行范围内的号码。
这等效于bottomRow() - topRow()+ 1 。
这个函数是Qt 4.1中引入。
See also columnCount( )topRow()和bottomRow( ) 。
int QTableWidgetSelectionRange.topRow (self)
返回范围的顶行。
See also bottomRow( )leftColumn()和rowCount( ) 。