c++ - Qt Creator cannot resolve STL containers -
i've downloaded qt 5.4 windows, running in windows 8.1 pro. comes mingw , qt creator 3.3.
i've been using qt few years. still necessary component seems missing in qt creator ide. suppose class card
defined function getsymbol()
:
class card { public: string getsymbol() const; }
somewhere in code i've std::vector
of card
s:
vector<card> playable;
and somewhere else in code:
playable[0].getsymbol(); ^----------------- note dot
when type period in line above, qt creator should list available functions , variables of card
class used, intellisense works in vs. doesn't happen. however, when create object of type card
, dot triggers qt creator show available functions:
why feature doesn't work when card
objects put in stl containers? there settings needs enabled?
this has been long standing issue discussed asked , asked on again on forums , mailing lists. thuga correctly showed in comment, corresponding bugreport monitor:
code completion not work std::vector of objects
note qtcreator meant working qt code , use qvector
in such projects working. not saying not worth fixing, @ least history.
this may getting closer , closer using clang inside qtcreator, guess need wait.
Comments
Post a Comment