Obsolete Members for TableView

Los siguientes miembros del tipo TableView de QML están obsoletos. Se proporcionan para que el código fuente antiguo siga funcionando. Desaconsejamos su uso en código nuevo.

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)

Documentación del método

[deprecated] Point cellAtPos(point position, bool includeSpacing)

Este método está obsoleto. Desaconsejamos su uso en código nuevo.

Utilice cellAtPosition(posición del punto) en su lugar.


[deprecated] Point cellAtPos(real x, real y, bool includeSpacing)

Este método está obsoleto. Desaconsejamos su uso en código nuevo.

Utilice cellAtPosition(real x, real y) en su lugar.


[deprecated] Item itemAtCell(int column, int row)

Este método está obsoleto. Desaconsejamos su uso en código nuevo.

Utilice itemAtIndex(index(fila, columna)) en su lugar.


[since 6.4, deprecated] QModelIndex modelIndex(int row, int column)

Este método está obsoleto. Desaconsejamos su uso en código nuevo.

Utilice index(int fila, int columna) en su lugar.

Nota: Debido a un cambio incompatible de la API entre Qt 6.4.0 y Qt 6.4.2, el orden de row y column se especificó en orden inverso. Si confías en que el orden sea modelIndex(column, row), puedes establecer la variable de entorno QT_QUICK_TABLEVIEW_COMPAT_VERSION a 6.4

Este método se introdujo en Qt 6.4.


[deprecated] void positionViewAtCell(int column, int row, PositionMode mode, point offset, rect subRect)

Este método está obsoleto. Desaconsejamos su uso en código nuevo.

Utilice positionViewAtIndex(index(fila, columna), ...) en su lugar.


© 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.