Qt-Creatro: keyword "constexpr" not accessible via F1 in cppreference
Hi everyone,
I use Qt Creator 13.0.0. and have included the file cppreference-doc-en-cpp.qch. So if I put the cursor on a keyword (e.g. const) in the editor and press F1, the corresponding information from cppreference-doc-en-cpp.qch appears. If I use constexpr instead and do the same thing, Qt Creator tells me that there is no documentation for it. That is of course wrong, because if I open cppreference-doc-en-cpp.qch (without F1), the keyword constexpr can be found there with the corresponding information.
Questions: Is this a (known?) bug? Is there a solution?
Thanks for answers
Re: Qt-Creatro: keyword "constexpr" not accessible via F1 in cppreference
Go to Tools > Options > Help > Documentation and check that the cppreference-doc-en-cpp.qch file is added and enabled.
Re: Qt-Creatro: keyword "constexpr" not accessible via F1 in cppreference
Quote:
Originally Posted by
rechtsanwaltsteyer
Hi everyone,
I use Qt Creator 13.0.0. and have included the file cppreference-doc-en-cpp.qch. So if I put the cursor on a keyword (e.g. const) in the editor and press F1, the corresponding information from cppreference-doc-en-cpp.qch appears. If I use constexpr instead and do the same thing, Qt Creator tells me that there is no documentation for it. That is of course wrong, because if I open cppreference-doc-en-cpp.qch (without F1), the keyword constexpr can be found there with the corresponding information.
Questions: Is this a (known?) bug? Is there a solution?
Thanks for answers
Ensure that the cppreference-doc-en-cpp.qch file is properly integrated and enabled in Qt Creator:
Navigate to Tools > Options > Help > Documentation.
Confirm that the cppreference-doc-en-cpp.qch file is listed and checked.
If it's missing, add it using the Add... button and select the .qch file.
After making changes, restart Qt Creator to apply them.
*** Moderator edit: Spam link removed. Last warning: The next post that includes such a link will result in banning and all other posts being removed. There is zero tolerance for spammers here. ***
Re: Qt-Creatro: keyword "constexpr" not accessible via F1 in cppreference
Hello natalieportman,
Thank you for your advice. Of course, the files cppreference-doc-en-cpp.qch and cppref.qch are included – as you described – and are located in /usr/share/qt5/doc/.
With F1, I can only get help for const (!) and other keywords like int, etc. However, for constexpr (!) a message appears stating that no documentation is available. However, if you open cppreference-doc-en-cpp.qch, for example, via the Help menu item and look under Keywords, there is indeed a constexpr entry with a link to the manual page. In my opinion, there is an indexing error here.
Re: Qt-Creatro: keyword "constexpr" not accessible via F1 in cppreference
@rechtsanwaltsteyer: "natalieportman" is a spambot and has been banned. It copies your post, then uses ChatGPT to make a response that contains a spam link. Ignore it.