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 ().
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. |
Constructs a new QAccessibleTableModelChangeEvent for interface iface with a model change type changeType .
Constructs a new QAccessibleTableModelChangeEvent for object of with changeType .
Returns the first changed column.
另请参阅 setFirstColumn ().
返回第一改变行。
另请参阅 setFirstRow ().
Returns the last changed column.
另请参阅 setLastColumn ().
Returns the last changed row.
另请参阅 setLastRow ().
Returns the type of change.
另请参阅 setModelChangeType ().
Sets the first changed column .
另请参阅 firstColumn ().
Sets the first changed row .
另请参阅 firstRow ().
Sets the last changed column .
另请参阅 lastColumn ().
Sets the last changed row .
另请参阅 lastRow ().
Sets the type of change to changeType .
另请参阅 modelChangeType ().