QTableWidgetSelectionRange Class

QTableWidgetSelectionRange 클래스는 모델 인덱스와 선택 모델을 사용하지 않고 모델의 선택과 상호 작용할 수 있는 방법을 제공합니다. 더 보기...

Header: #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, bottomright 테이블 행과 열에서 테이블 선택 범위를 구성합니다.

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)

lhsrhs 이 같지 않으면 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.

이 함수는 Qt 6.3에 도입되었습니다.

[noexcept, since 6.3] bool operator==(const QTableWidgetSelectionRange &lhs, const QTableWidgetSelectionRange &rhs)

lhsrhs 이 같으면 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.

이 함수는 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.