Obsolete Members for TableView

QMLのTableView型の以下のメンバは非推奨です。これらは古いソースコードの動作を維持するために提供されています。新しいコードでは使用しないことを強く推奨します。

メソッド

  • 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)
  • positionViewAtCell(int column, int row, PositionMode mode, point offset, rect subRect) (deprecated)

メソッド・ドキュメンテーション

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

このメソッドは非推奨である。新しいコードでは使用しないことを強くお勧めします。

代わりにcellAtPosition (ポイント位置)を使用してください。


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

このメソッドは非推奨である。新しいコードでは使用しないことを強くお勧めします。

代わりにcellAtPosition(real x, real y) を使ってください。


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

このメソッドは非推奨である。新しいコードでは使用しないことを強くお勧めします。

代わりにitemAtIndex(index(row, column)) を使用してください。


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

このメソッドは非推奨である。新しいコードでは使用しないことを強くお勧めします。

代わりにindex(int row, int column) を使用してください。

注意: Qt 6.4.0 と Qt 6.4.2 の間の API の互換性のない変更により、rowcolumn の順序が逆に指定されました。順番がmodelIndex(column, row) であることに依存する場合は、環境変数QT_QUICK_TABLEVIEW_COMPAT_VERSION6.4

この方法はQt 6.4で導入されました。


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

このメソッドは非推奨である。新しいコードでは使用しないことを強くお勧めします。

代わりにpositionViewAtIndex(index(row, column), ...) を使用してください。


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