QHelpIndexWidget Class
Die Klasse „QHelpIndexWidget“ stellt eine Listenansicht bereit, in der der „ QHelpIndexModel “ angezeigt wird. Mehr...
| Überschrift: | #include <QHelpIndexWidget> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Help) target_link_libraries(mytarget PRIVATE Qt6::Help) |
| qmake: | QT += help |
| Erbt von: | QListView |
Öffentliche Slots
| void | activateCurrentItem() |
| void | filterIndices(const QString &filter, const QString &wildcard = {}) |
Signale
| void | documentActivated(const QHelpLink &document, const QString &keyword) |
| void | documentsActivated(const QList<QHelpLink> &documents, const QString &keyword) |
Dokumentation der Member-Funktionen
[slot] void QHelpIndexWidget::activateCurrentItem()
Aktiviert das aktuelle Element, was schließlich zur Ausgabe eines Signals vom Typ „linkActivated()“ oder „linksActivated()“ führt.
[signal] void QHelpIndexWidget::documentActivated(const QHelpLink &document, const QString &keyword)
Dieses Signal wird ausgelöst, wenn ein Element aktiviert wird und die zugehörige Seite „ document “ angezeigt werden soll. Um zu wissen, zu welcher Seite der Link gehört, wird die URL „ keyword “ als zweiter Parameter übergeben.
[signal] void QHelpIndexWidget::documentsActivated(const QList<QHelpLink> &documents, const QString &keyword)
Dieses Signal wird ausgelöst, wenn das Element, das die „ keyword “ darstellt, aktiviert wird und diesem Element mehr als ein Dokument zugeordnet ist. Die „ documents “ bestehen aus den Dokumenttiteln und deren URLs.
[slot] void QHelpIndexWidget::filterIndices(const QString &filter, const QString &wildcard = {})
Filtert die Indizes gemäß filter oder wildcard. Der Eintrag mit der besten Übereinstimmung wird als aktueller Eintrag festgelegt.
Siehe auch QHelpIndexModel::filter().
© 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.