QTableWidgetSelectionRange Class
QTableWidgetSelectionRangeクラスは、モデルインデックスや選択モデルを使用せずに、モデル内の選択を操作する方法を提供します。詳細...
ヘッダ | #include <QTableWidgetSelectionRange> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
パブリック関数
QTableWidgetSelectionRange() | |
QTableWidgetSelectionRange(int top, int left, int bottom, int right) | |
int | bottomRow() const |
int | columnCount() const |
int | leftColumn() const |
int | rightColumn() const |
int | rowCount() const |
int | topRow() const |
関連する非メンバー
(since 6.3) bool | operator!=(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs) |
(since 6.3) bool | operator==(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs) |
詳細な説明
QTableWidgetSelectionRangeクラスは、テーブル内の選択範囲の左上と右下の行と列を格納します。テーブル内の選択項目は、複数の選択範囲から構成される場合があります。
注意: 選択範囲内のアイテムが選択不可能とマークされている場合 (例:itemFlags() & Qt::ItemIsSelectable == 0
)、そのアイテムは選択範囲に表示されません。
QTableWidgetも参照 。
メンバ関数ドキュメント
[constexpr noexcept]
QTableWidgetSelectionRange::QTableWidgetSelectionRange()
空のテーブル選択範囲、つまりrowCount() とcolumnCount() が 0 の範囲を構築する。
topRow(),leftColumn(),bottomRow(),rightColumn()も参照 。
QTableWidgetSelectionRange::QTableWidgetSelectionRange(int top, int left, int bottom, int right)
指定されたtop 、left 、bottom 、right テーブルの行と列からテーブル選択範囲を構築する。
topRow()、leftColumn()、bottomRow() およびrightColumn()も参照 。
int QTableWidgetSelectionRange::bottomRow() const
範囲の最下行を返す。
topRow()、rightColumn() およびrowCount()も参照 。
int QTableWidgetSelectionRange::columnCount() const
範囲内の列数を返す。
これはrightColumn() -leftColumn() + 1 と等価である。
rowCount()、leftColumn() およびrightColumn()も参照 。
int QTableWidgetSelectionRange::leftColumn() const
範囲の左列を返します。
rightColumn()、topRow() およびcolumnCount()も参照 。
int QTableWidgetSelectionRange::rightColumn() const
範囲の右列を返します。
leftColumn()、bottomRow() およびcolumnCount()も参照 。
int QTableWidgetSelectionRange::rowCount() const
範囲内の行数を返す。
これはbottomRow() -topRow() + 1 と等価である。
columnCount()、topRow() およびbottomRow()も参照 。
int QTableWidgetSelectionRange::topRow() const
範囲の最上行を返します。
bottomRow()、leftColumn() およびrowCount()も参照 。
関連する非会員
[noexcept, since 6.3]
bool operator!=(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs)
lhs とrhs が等しくない場合は真を、そうでない場合は偽を返します。
この関数は Qt 6.3 で導入されました。
[noexcept, since 6.3]
bool operator==(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs)
lhs とrhs が等しければ真を、そうでなければ偽を返します。
この関数は Qt 6.3 で導入されました。
© 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.