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, title 및 snippet 를 결과 설명으로 포함하는 검색 결과를 생성합니다.
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 `를 할당하고, 이 검색 결과에 대한 참조를 반환합니다.
© 2026 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.