How to make Qt Creator to show pop-up documentation of my functions the same way it does for the functions from the Qt library?

前端 未结 2 1167
[愿得一人]
[愿得一人] 2020-12-29 05:45

When you place the mouse pointer over any Qt function/class it shows a pop-up with short description of what it does, taken from the docs in the comment above the function/c

2条回答
  •  情深已故
    2020-12-29 06:28

    Unfortunately it's not possible for Qt Creator (as of the recently release 2.4) to pick up the tags on-the-fly. However, what might work is to let doxygen run, and tell it to create qch files. If you register the created qch file, you should get mouse-over and even a proper help file. See http://www.ogre3d.org/tikiwiki/Integrating+API+documentation+into+Qt+Creator+Help for how Ogre3D does it. YMMV if that's worth it for a fast-changing project. It's certainly a good idea for a (semi-)stable library.

    Relevant bug report: https://bugreports.qt.io/browse/QTCREATORBUG-4557

提交回复
热议问题