QPdfSelection Class
QPdfSelection 클래스는 PDF 문서의 한 페이지에서 선택된 텍스트의 범위와 그 기하학적 경계를 정의합니다. 더 보기...
Header: | #include <QPdfSelection> |
속성
|
|
공공 기능
QRectF | boundingRectangle() const |
QList<QPolygonF> | bounds() const |
void | copyToClipboard(QClipboard::Mode mode = QClipboard::Clipboard) const |
int | endIndex() const |
bool | isValid() const |
int | startIndex() const |
QString | text() const |
QPdfDocument::getSelection()도 참조하세요 .
속성 문서
[read-only]
boundingRectangle : const QRectF
이 프로퍼티는 bounds 를 중심으로 전체 경계 사각형(볼록한 선체)을 보유합니다.
액세스 함수입니다:
QRectF | boundingRectangle() const |
[read-only]
bounds : const QList<QPolygonF>
이 속성은 선택한 텍스트가 페이지에서 차지하는 영역의 집합을 다각형으로 표시합니다. 다각형의 좌표계는 페이지의 왼쪽 상단 모서리에 원점이 있으며 단위는 점입니다.
참고: 현재 QPdfDocument::getSelection()에서 반환되는 다각형은 항상 직사각형이지만 향후에는 더 복잡한 영역을 표현할 수 있게 될 수 있습니다.
함수 액세스하기:
QList<QPolygonF> | bounds() const |
[read-only]
endIndex : const int
이 속성은 페이지의 전체 텍스트 내에서 text 끝에 인덱스를 보유합니다.
액세스 함수:
int | endIndex() const |
[read-only]
startIndex : const int
이 속성은 페이지의 전체 텍스트 내에서 text 시작 부분의 색인을 유지합니다.
액세스 기능:
int | startIndex() const |
[read-only]
text : const QString
이 속성에는 선택한 텍스트가 저장됩니다.
액세스 함수:
QString | text() const |
[read-only]
valid : const bool
이 속성은 선택 항목이 유효한지 여부를 저장합니다.
액세스 함수:
bool | isValid() const |
멤버 함수 문서
void QPdfSelection::copyToClipboard(QClipboard::Mode mode = QClipboard::Clipboard) const
선택한 mode 에 따라 text 을 system clipboard 으로 복사합니다.
© 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.