PdfSearchModel QML Type

PDF 문서 내 텍스트 검색 결과의 표현입니다. 더 보기...

Import Statement: import QtQuick.Pdf

속성

방법

상세 설명

PdfSearchModel은 문서 내에서 텍스트 문자열을 검색하고 각 페이지에서 일치하는 기하학적 위치를 가져오는 기능을 제공합니다.

속성 문서

count : int [since 6.8]

발견된 검색 결과의 수입니다.

이 프로퍼티는 Qt 6.8에 도입되었습니다.


currentPage : int

currentResultBoundingPolygons 이 필터링된 검색 결과를 제공해야 하는 페이지입니다.


currentPageBoundingPolygons : list<list<point>>

PathMultiline 인스턴스의 paths 속성에 바인딩하여 currentPage 에서 검색 결과가 발견된 모든 영역 주위에 직사각형 배치를 렌더링할 수 있는 형식의 경로 집합입니다:

PdfDocument {
    id: doc
}
PdfSearchModel {
    id: searchModel
    document: doc
}
Shape {
    ShapePath {
        PathMultiline {
            paths: searchModel.matchGeometry(view.currentPage)
        }
    }
}

PathMultiline도 참조하세요 .


currentResult : int

currentPagecurrentResultLink.page 과 일치하는 경우 currentResultBoundingPolygons 이 강조 표시할 영역을 제공해야 하는 전체 검색 결과 집합 내의 결과 인덱스입니다.


currentResultBoundingPolygons : list<list<point>>

PathMultiline 인스턴스의 paths 속성에 바인딩하여 currentPage 에서 검색 결과 currentResult 를 구성하는 영역 주위의 직사각형 배치를 렌더링할 수 있는 형식의 경로 집합입니다. 이는 일반적으로 결과를 단계별로 살펴볼 수 있는 UI에서 한 번에 하나의 검색 결과를 강조 표시하는 데 사용됩니다:

PdfDocument {
    id: doc
}
PdfSearchModel {
    id: searchModel
    document: doc
    currentPage: view.currentPage
    currentResult: ...
}
Shape {
    ShapePath {
        PathMultiline {
            paths: searchModel.currentResultBoundingPolygons
        }
    }
}

currentPage != currentResultLink.page.

PathMultiline도 참조하세요 .


currentResultBoundingRect : point

를 모두 포함하는 경계 상자 currentResultBoundingPolygons, currentPage == currentResultLink.page 이면 유효하지 않은 사각형입니다.


인덱스의 결과 currentResult.


searchString : string

검색할 문자열.


메서드 문서

list<list<point>> boundingPolygonsOnPage(int page)

PathMultiline 인스턴스의 paths 속성에 바인딩할 수 있는 형식의 경로 집합을 반환하며, page 에서 일치하는 모든 위치 주위에 직사각형을 일괄 렌더링하는 데 사용됩니다:

PdfDocument {
    id: doc
}
PdfSearchModel {
    id: searchModel
    document: doc
}
Shape {
    ShapePath {
        PathMultiline {
            paths: searchModel.matchGeometry(view.currentPage)
        }
    }
}

PathMultiline도 참조하십시오 .


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