• PySide 模块
  • PySide.QtGui
  • 内容表

    上一话题

    QTableWidgetItem

    下一话题

    QStandardItem

    QTableWidgetSelectionRange

    详细描述

    PySide.QtGui.QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model.

    PySide.QtGui.QTableWidgetSelectionRange class stores the top left and bottom right rows and columns of a selection range in a table. The selections in the table may consist of several selection ranges.

    注意

    If the item within the selection range is marked as not selectable, e.g., itemFlags() & Qt::ItemIsSelectable == 0 then it will not appear in the selection range.

    class PySide.QtGui. QTableWidgetSelectionRange
    class PySide.QtGui. QTableWidgetSelectionRange ( other )
    class PySide.QtGui. QTableWidgetSelectionRange ( top , left , bottom , right )
    参数:

    Constructs an table selection range, i.e. a range whose PySide.QtGui.QTableWidgetSelectionRange.rowCount() and PySide.QtGui.QTableWidgetSelectionRange.columnCount() are 0.

    Constructs a the table selection range by copying the given other table selection range.

    Constructs the table selection range from the given top , left , bottom and right table rows and columns.

    PySide.QtGui.QTableWidgetSelectionRange. bottomRow ( )
    返回类型: PySide.QtCore.int

    Returns the bottom row of the range.

    PySide.QtGui.QTableWidgetSelectionRange. columnCount ( )
    返回类型: PySide.QtCore.int

    Returns the number of columns in the range.

    这相当于 PySide.QtGui.QTableWidgetSelectionRange.rightColumn() - PySide.QtGui.QTableWidgetSelectionRange.leftColumn() + 1.

    PySide.QtGui.QTableWidgetSelectionRange. leftColumn ( )
    返回类型: PySide.QtCore.int

    Returns the left column of the range.

    PySide.QtGui.QTableWidgetSelectionRange. rightColumn ( )
    返回类型: PySide.QtCore.int

    Returns the right column of the range.

    PySide.QtGui.QTableWidgetSelectionRange. rowCount ( )
    返回类型: PySide.QtCore.int

    Returns the number of rows in the range.

    这相当于 PySide.QtGui.QTableWidgetSelectionRange.bottomRow() - PySide.QtGui.QTableWidgetSelectionRange.topRow() + 1.

    PySide.QtGui.QTableWidgetSelectionRange. topRow ( )
    返回类型: PySide.QtCore.int

    Returns the top row of the range.