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 default] 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 가 같지 않으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.
이 함수는 Qt 6.3에서 도입되었습니다.
[noexcept, since 6.3] bool operator==(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs)
lhs 와 rhs 가 같으면 true를 반환하고, 그렇지 않으면 false를 반환합니다.
이 함수는 Qt 6.3에서 도입되었습니다.
© 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.