QHelpSearchResult Class
Die Klasse QHelpSearchResult liefert die mit dem Suchergebnis verbundenen Daten. Mehr...
Kopfzeile: | #include <QHelpSearchResult> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Help) target_link_libraries(mytarget PRIVATE Qt6::Help) |
qmake: | QT += help |
Öffentliche Funktionen
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) |
Detaillierte Beschreibung
Das QHelpSearchResult-Objekt ist ein Datenobjekt, das ein einzelnes Suchergebnis beschreibt. Der Vektor der Suchergebnisobjekte wird durch QHelpSearchEngine::searchResults() zurückgegeben. Die Beschreibung des Suchergebnisses enthält den Dokumententitel und die URL, auf die die Sucheingabe zutraf. Sie enthält auch den Ausschnitt aus dem Inhalt des Dokuments, der die beste Übereinstimmung mit der Sucheingabe aufweist.
Siehe auch QHelpSearchEngine.
Dokumentation der Mitgliedsfunktionen
QHelpSearchResult::QHelpSearchResult()
Konstruiert ein neues leeres QHelpSearchResult.
QHelpSearchResult::QHelpSearchResult(const QUrl &url, const QString &title, const QString &snippet)
Konstruiert das Suchergebnis, das url, title und snippet als Beschreibung des Ergebnisses enthält.
QHelpSearchResult::QHelpSearchResult(const QHelpSearchResult &other)
Konstruiert eine Kopie von other.
[noexcept]
QHelpSearchResult::~QHelpSearchResult()
Zerstört das Suchergebnis.
QString QHelpSearchResult::snippet() const
Gibt das Dokument-Snippet zurück, das die Suchphrase des Suchergebnisses enthält.
QString QHelpSearchResult::title() const
Gibt den Dokumententitel des Suchergebnisses zurück.
QUrl QHelpSearchResult::url() const
Gibt die Dokument-URL des Suchergebnisses zurück.
QHelpSearchResult &QHelpSearchResult::operator=(const QHelpSearchResult &other)
Weist diesem Suchergebnis other zu und gibt einen Verweis auf dieses Suchergebnis zurück.
© 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.