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) - void 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 互換性のない変更により 、row とcolumn の順序が逆になっていました。modelIndex(column, row) という順序を前提としている場合は、環境変数QT_QUICK_TABLEVIEW_COMPAT_VERSION を6.4
この方法は Qt 6.4 で導入されました。
[deprecated] void positionViewAtCell(int column, int row, PositionMode mode, point offset, rect subRect)
このメソッドは非推奨です。新しいコードでの使用は強くお勧めしません。
代わりに `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.