小编Nic*_*ehs的帖子

如何在QtCreator工具提示中显示API文档?

QtCreator为内置Qt函数提供工具提示,如下所示:

在此输入图像描述

我已经为我自己的函数添加了一些文档,如下所示:

        /**
         * @brief serialize Writes the passed field definition set to the specified device.
         * @param device Device to write the field definition set to.
         * @param fieldDefinitionSet Field definition set to write.
         */
        void serialize(QIODevice& device, const FieldDefinitionSet& fieldDefinitionSet) const;
Run Code Online (Sandbox Code Playgroud)

运行Doxygen和qhelpgenerator,我创建了自己的.qhp文件并将其添加到QtCreator.但是,QtCreator仍然没有在工具提示中显示我的简短摘要:

在此输入图像描述

我假设QtCreator基本上已经识别了我的.qhp文件,因为点击F1会显示生成的文档:

在此输入图像描述

有没有办法在工具提示中获得简短的摘要?我已经尝试了一切

但仍然没有摘要.

documentation qt qt-creator

7
推荐指数
1
解决办法
968
查看次数

标签 统计

documentation ×1

qt ×1

qt-creator ×1