QPdfLink Class

QPdfLink 클래스는 페이지의 영역(예: 하이퍼링크 또는 검색 결과)과 대상(페이지, 페이지의 위치 및 볼 수 있는 확대/축소 수준) 사이의 링크를 정의합니다. 더 보기...

Header: #include <QPdfLink>
Since: Qt 6.4

속성

공공 기능

QPdfLink()
QString contextAfter() const
QString contextBefore() const
void copyToClipboard(QClipboard::Mode mode = QClipboard::Clipboard) const
bool isValid() const
QPointF location() const
int page() const
QList<QRectF> rectangles() const
QString toString() const
QUrl url() const
qreal zoom() const

상세 설명

속성 문서

[read-only] contextAfter : const QString

이 속성은 검색 문자열 뒤의 페이지에서 발견된 인접 텍스트를 저장합니다. 링크가 하이퍼링크인 경우 이 문자열은 비어 있습니다.

함수 액세스:

QString contextAfter() const

QPdfSearchModel::resultsOnPage() 및 QPdfSearchModel::resultAtIndex()도 참조하세요 .

[read-only] contextBefore : const QString

이 속성은 검색 문자열 앞 페이지에 있는 인접 텍스트를 저장합니다. 링크가 하이퍼링크인 경우 이 문자열은 비어 있습니다.

함수 액세스:

QString contextBefore() const

QPdfSearchModel::resultsOnPage() 및 QPdfSearchModel::resultAtIndex()도 참조하세요 .

[read-only] location : const QPointF

이 속성은 page 의 위치를 포인트 단위로 저장합니다. 링크가 검색 결과인 경우 결과가 발견된 위치이고, 링크가 하이퍼링크인 경우 목적지 위치입니다.

액세스 기능:

QPointF location() const

[read-only] page : const int

이 속성에는 페이지 번호가 저장됩니다. 링크가 검색 결과인 경우 결과가 있는 페이지 번호이고, 링크가 하이퍼링크인 경우 대상 페이지 번호입니다.

액세스 기능:

int page() const

[read-only] rectangles : const QList<QRectF>

이 속성은 링크 또는 검색 결과가 발견된 페이지에서 해당 링크 또는 검색 결과가 차지하는 영역(직사각형 집합)을 저장합니다. 텍스트가 페이지에서 여러 줄로 둘러싸인 경우 직사각형이 여러 개 있을 수 있습니다:

기능에 액세스합니다:

QList<QRectF> rectangles() const

QPdfSearchModel::resultsOnPage() 및 QPdfSearchModel::resultAtIndex()도 참조하세요 .

[read-only] url : const QUrl

이 속성은 링크가 외부 하이퍼링크인 경우 대상 URL을 저장하고, 그렇지 않으면 비어 있습니다.

액세스 함수:

QUrl url() const

[read-only] valid : const bool

이 속성은 링크가 유효한지 여부를 저장합니다.

액세스 함수:

bool isValid() const

[read-only] zoom : const qreal

이 속성에는 제안된 배율 수준이 저장되며, 1.0은 기본 배율(1픽셀 = 1포인트)을 의미합니다. 링크가 검색 결과인 경우 이 값은 사용되지 않습니다.

액세스 함수:

qreal zoom() const

멤버 함수 문서

잘못된 대상을 구성합니다.

valid도 참조하세요 .

[invokable] void QPdfLink::copyToClipboard(QClipboard::Mode mode = QClipboard::Clipboard) const

주어진 mode 에 따라 링크의 toString() 표현을 system clipboard 으로 복사합니다.

참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 을 참조하세요.

[invokable] QString QPdfLink::toString() const

표시할 번역된 표현을 반환합니다.

참고: 이 함수는 메타 객체 시스템과 QML을 통해 호출할 수 있습니다. Q_INVOKABLE 을 참조하세요.

copyToClipboard()도 참조하세요 .

© 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.