QHelpSearchResult Class

QHelpSearchResult 클래스는 검색 결과와 관련된 데이터를 제공합니다. 더 보기...

헤더: #include <QHelpSearchResult>
CMake: find_package(Qt6 REQUIRED COMPONENTS Help)
target_link_libraries(mytarget PRIVATE Qt6::Help)
qmake: QT += help

공용 함수

QHelpSearchResult()
QHelpSearchResult(const QUrl &url, const QString &title, const QString &snippet)
QHelpSearchResult(const QHelpSearchResult &other)
~QHelpSearchResult()
QString snippet() const
QString title() const
QUrl url() const
QHelpSearchResult &operator=(const QHelpSearchResult &other)

상세 설명

QHelpSearchResult 객체는 단일 검색 결과를 설명하는 데이터 객체입니다. 검색 결과 개체의 벡터는 QHelpSearchEngine::searchResults()에 의해 반환됩니다. 검색 결과의 설명에는 검색 입력과 일치하는 문서 제목과 URL이 포함됩니다. 또한 검색 입력과 가장 잘 일치하는 문서 콘텐츠의 스니펫도 포함되어 있습니다.

QHelpSearchEngine참조하세요 .

멤버 함수 문서

QHelpSearchResult::QHelpSearchResult()

새로운 빈 QHelpSearchResult를 생성합니다.

QHelpSearchResult::QHelpSearchResult(const QUrl &url, const QString &title, const QString &snippet)

검색 결과에 대한 설명으로 url, titlesnippet 을 포함하는 검색 결과를 구성합니다.

QHelpSearchResult::QHelpSearchResult(const QHelpSearchResult &other)

other 의 복사본을 생성합니다.

[noexcept] QHelpSearchResult::~QHelpSearchResult()

검색 결과를 삭제합니다.

QString QHelpSearchResult::snippet() const

검색 결과의 검색 구문이 포함된 문서 스니펫을 반환합니다.

QString QHelpSearchResult::title() const

검색 결과의 문서 제목을 반환합니다.

QUrl QHelpSearchResult::url() const

검색 결과의 문서 URL을 반환합니다.

QHelpSearchResult &QHelpSearchResult::operator=(const QHelpSearchResult &other)

이 검색 결과에 other 을 할당하고 이 검색 결과에 대한 참조를 반환합니다.

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