M
M
mrZurg2016-01-26 19:56:24
Qt
mrZurg, 2016-01-26 19:56:24

Why doesn't Qt Creator see std::vector element methods?

The question does not seem to be difficult. In general, we create a vector, for example: Then, a problem arises in Qt Creator:
std::vector<std::string> vStd;

vStd.at(0).  //<-в этот момент должен появится список методов std::string

After writing the dot, a list of the string class should appear.
In VS this is true, but for some reason this does not appear in Qt Creator.
How to fix it?
(Yes, in Qt Creator, you need to use exactly std elements)
The images below explain what I mean:
VS2013
7a81ad64540c42e8979b47d92fbc10e1.png
Qt Creator
9d0072f5a3044721a164e5396a14d05f.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Moseychuk, 2016-01-26
@fshp

Enable Clang code model

V
Vitaly, 2016-01-26
@vt4a2h

Pretty strange. Does the project compile?
In any case, check out Options->Build & Run->Kits/Compilers/Qt Versions. And all the way.
PS
And the code model changes on the Options->C++->Code Model tab. I just doubt that you have the clang installed and all the paths are registered, or what needs to be done on Windows.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question