Obsolete Members for TableView
Os seguintes membros do tipo TableView da QML estão obsoletos. Eles são fornecidos para manter o código-fonte antigo em funcionamento. Recomendamos enfaticamente que não sejam utilizados em código novo.
Métodos
- Point cellAtPos(point position, bool includeSpacing)
(deprecated) - Point cellAtPos(real x, real y, bool includeSpacing)
(deprecated) - Item itemAtCell(int column, int row)
(deprecated) - QModelIndex modelIndex(int row, int column)
(since 6.4, deprecated) - void positionViewAtCell(int column, int row, PositionMode mode, point offset, rect subRect)
(deprecated)
Documentação do método
[deprecated] Point cellAtPos(point position, bool includeSpacing)
Este método está obsoleto. Recomendamos enfaticamente que você não o utilize em código novo.
Use ` cellAtPosition` (posição do ponto) em vez disso.
[deprecated] Point cellAtPos(real x, real y, bool includeSpacing)
Este método está obsoleto. Recomendamos enfaticamente que você não o utilize em códigos novos.
Use cellAtPosition(real x, real y) em vez disso.
[deprecated] Item itemAtCell(int column, int row)
Esse método está obsoleto. Recomendamos enfaticamente que você não o utilize em códigos novos.
Em vez disso, use ` itemAtIndex(index(row, column))`.
[since 6.4, deprecated] QModelIndex modelIndex(int row, int column)
Este método está obsoleto. Recomendamos enfaticamente que não seja utilizado em código novo.
Use index(int row, int column) em vez disso.
Observação: devido a uma alteração incompatível na API entre o Qt 6.4.0 e o Qt 6.4.2, a ordem de ` row ` e ` column ` foi especificada na ordem inversa. Se você depende da ordem ` modelIndex(column, row)`, pode definir a variável de ambiente ` QT_QUICK_TABLEVIEW_COMPAT_VERSION ` como 6.4
Esse método foi introduzido no Qt 6.4.
[deprecated] void positionViewAtCell(int column, int row, PositionMode mode, point offset, rect subRect)
Esse método está obsoleto. Recomendamos enfaticamente que você não o utilize em código novo.
Em vez disso, use ` positionViewAtIndex(index(row, column), ...)`.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.