QAccessibleTableModelChangeEvent 类

QAccessibleTableModelChangeEvent 表示表格、列表或树中添加 (或移除) 单元格的变化。若改变影响多行, firstColumn and lastColumn 将返回 -1。同样,对于列,行函数可能返回 -1。 更多...

头: #include <QAccessibleTableModelChangeEvent>
CMake: find_package(Qt6 COMPONENTS Gui REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
继承: QAccessibleEvent

公共类型

enum ModelChangeType { ModelReset, DataChanged, RowsInserted, ColumnsInserted, RowsRemoved, ColumnsRemoved }

公共函数

  QAccessibleTableModelChangeEvent (QAccessibleInterface * iface , QAccessibleTableModelChangeEvent::ModelChangeType changeType )
  QAccessibleTableModelChangeEvent (QObject * object , QAccessibleTableModelChangeEvent::ModelChangeType changeType )
int firstColumn () const
int firstRow () const
int lastColumn () const
int lastRow () const
QAccessibleTableModelChangeEvent::ModelChangeType modelChangeType () const
void setFirstColumn (int column )
void setFirstRow (int row )
void setLastColumn (int column )
void setLastRow (int row )
void setModelChangeType (QAccessibleTableModelChangeEvent::ModelChangeType changeType )

详细描述

此类用于 QAccessible::updateAccessibility ().

成员类型文档编制

enum QAccessibleTableModelChangeEvent:: ModelChangeType

This enum describes the different types of changes in the table model.

常量 描述
QAccessibleTableModelChangeEvent::ModelReset 0 The model has been reset, all previous knowledge about the model is now invalid.
QAccessibleTableModelChangeEvent::DataChanged 1 No cells have been added or removed, but the data of the specified cell range is invalid.
QAccessibleTableModelChangeEvent::RowsInserted 2 New rows have been inserted.
QAccessibleTableModelChangeEvent::ColumnsInserted 3 New columns have been inserted.
QAccessibleTableModelChangeEvent::RowsRemoved 4 Rows have been removed.
QAccessibleTableModelChangeEvent::ColumnsRemoved 5 Columns have been removed.

成员函数文档编制

QAccessibleTableModelChangeEvent:: QAccessibleTableModelChangeEvent ( QAccessibleInterface * iface , QAccessibleTableModelChangeEvent::ModelChangeType changeType )

Constructs a new QAccessibleTableModelChangeEvent for interface iface with a model change type changeType .

QAccessibleTableModelChangeEvent:: QAccessibleTableModelChangeEvent ( QObject * object , QAccessibleTableModelChangeEvent::ModelChangeType changeType )

Constructs a new QAccessibleTableModelChangeEvent for object of with changeType .

int QAccessibleTableModelChangeEvent:: firstColumn () const

Returns the first changed column.

另请参阅 setFirstColumn ().

int QAccessibleTableModelChangeEvent:: firstRow () const

返回第一改变行。

另请参阅 setFirstRow ().

int QAccessibleTableModelChangeEvent:: lastColumn () const

Returns the last changed column.

另请参阅 setLastColumn ().

int QAccessibleTableModelChangeEvent:: lastRow () const

Returns the last changed row.

另请参阅 setLastRow ().

QAccessibleTableModelChangeEvent::ModelChangeType QAccessibleTableModelChangeEvent:: modelChangeType () const

Returns the type of change.

另请参阅 setModelChangeType ().

void QAccessibleTableModelChangeEvent:: setFirstColumn ( int column )

Sets the first changed column .

另请参阅 firstColumn ().

void QAccessibleTableModelChangeEvent:: setFirstRow ( int row )

Sets the first changed row .

另请参阅 firstRow ().

void QAccessibleTableModelChangeEvent:: setLastColumn ( int column )

Sets the last changed column .

另请参阅 lastColumn ().

void QAccessibleTableModelChangeEvent:: setLastRow ( int row )

Sets the last changed row .

另请参阅 lastRow ().

void QAccessibleTableModelChangeEvent:: setModelChangeType ( QAccessibleTableModelChangeEvent::ModelChangeType changeType )

Sets the type of change to changeType .

另请参阅 modelChangeType ().