Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
qtcreator autocompletion for c++ auto keyword
-
When I write
std::shared_ptr<QWidget> w = std::make_shared<QWidget>();
And then
w.
function list will popup.
But when I writeauto w = std::make_shared<QWidget>();
Nothing popup when I write
w.
Doesn't qtcreator support auto keyword yet?
My qtcreator version is 4.5.2 under ubuntu 1804
-
That is a good question.
However, you are using an old version of creator. Therefore, it is also very likely that it has been introduced, but in a latter version of creator. Weare already at version 4.10
-
Hi @Mr-Pang,
as @koahnig already said, you should update. There has been 5 major releases, and especially the C++ support with the Clang Code Model improved rapidely. (Okay, sometimes you get new problems with Clang, but that's another topic).
Regards
-
@aha_1980
OK. But ubuntu 1804 only has 4.5.2.
-
@Mr-Pang You can install it with the online installer together with a recent Qt version.
That's how I do it on Ubuntu 18.04 ;)