QHelpContentItem Class

QHelpContentItem 类提供了与QHelpContentModel 一起使用的项目。更多

头文件: #include <QHelpContentItem>
CMake: find_package(Qt6 REQUIRED COMPONENTS Help)
target_link_libraries(mytarget PRIVATE Qt6::Help)
qmake: QT += help

公共函数

~QHelpContentItem()
QHelpContentItem *child(int row) const
int childCount() const
int childPosition(QHelpContentItem *child) const
QHelpContentItem *parent() const
int row() const
QString title() const
QUrl url() const

详细说明

成员函数文档

[noexcept] QHelpContentItem::~QHelpContentItem()

销毁帮助内容项。

QHelpContentItem *QHelpContentItem::child(int row) const

返回给定row 中内容项的子内容。

另请参阅 parent()。

int QHelpContentItem::childCount() const

返回子项目的数量。

int QHelpContentItem::childPosition(QHelpContentItem *child) const

返回给定child 的位置。

QHelpContentItem *QHelpContentItem::parent() const

返回父内容项。

int QHelpContentItem::row() const

从父级视图中返回此项目的行。

QString QHelpContentItem::title() const

返回内容项的标题。

QUrl QHelpContentItem::url() const

返回该内容项的 URL。

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