Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jump to the right C++ STL documentation page in QtCreator after F1?

QtCreator comes with cool Qt-related documentation and functionality: when you select a Qt class and press F1, it opens a sidebar with that class specific documentation page.

Now, QtCreator lets me install C++ documentation (found here: http://qt-project.org/wiki/Qt_Creator_Documentation_Gallery - I've tried the en.cppreference.com version). However, selecting an STL class and pressing F1 only opens the default, generic page listine, sort of "Home" of the documentation.

Is it possible to have a mimic functionality for C++ STL docs to the one of Qt docs?

Also, I've checked it in QtCreator 2.4 running on Ubuntu 12.04. Is it maybe fixed in newer versions?

like image 403
hauron Avatar asked May 13 '14 13:05

hauron


1 Answers

In case you're still looking for an answer to this (or for anyone else finding this posting), there is a working solution now. In the official documentation gallery there is a download link labelled STL documentation. That version will provide correctly working context sensitive look-up. There are a few things where that seems to fail though (like std::unique_ptr), but for most things I tested it works just fine. Some things find a technically correct but not helpful entry though. As an example, std::fill(...) will link to the correct entry in "std Namespace Reference" (which is just a line of the definition, and not linked to anything useful either) but not the description on the "Mutating" page (which is the first suggestion when searching for 'fill' via the index).

Please ignore the two links that are still at the top of that page though, those either completely lock-up the help system (docs.google.com) or just don't provide context sensitive help (en.cppreference.com).

like image 143
Creat Avatar answered Oct 16 '22 00:10

Creat