Obsolete Members for TableView

The following members of QML type TableView 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

方法

  • cellAtPos (point position , bool includeSpacing ) (弃用)
  • cellAtPos (real x , real y , bool includeSpacing ) (弃用)
  • Item itemAtCell (int column , int row ) (弃用)
  • QModelIndex modelIndex (int row , int column ) (since 6.4, deprecated)
  • positionViewAtCell (int column , int row , PositionMode mode , point offset , rect subRect ) (弃用)

方法文档编制

[deprecated] cellAtPos ( point position , bool includeSpacing )

This method is deprecated. We strongly advise against using it in new code.

使用 cellAtPosition (point position) instead.

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

This method is deprecated. We strongly advise against using it in new code.

使用 cellAtPosition (real x, real y) instead.

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

This method is deprecated. We strongly advise against using it in new code.

使用 itemAtIndex(index (row, column)) instead.

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

This method is deprecated. We strongly advise against using it in new code.

使用 index (int row, int column) instead.

注意: Because of an API incompatible change between Qt 6.4.0 and Qt 6.4.2, the order of row and column was specified in the opposite order. If you rely on the order to be modelIndex(column, row) , you can set the environment variable QT_QUICK_TABLEVIEW_COMPAT_VERSION to 6.4

This method was introduced in Qt 6.4.

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

This method is deprecated. We strongly advise against using it in new code.

使用 positionViewAtIndex(index (row, column), ...) instead.