Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 6.0.2
-
None
-
-
ce27886eeb (qt-creator/qt-creator/7.0) ce27886eeb (qt-creator/qt-creator/master) ce27886eeb (qt-creator/tqtc-qt-creator/7.0) ce27886eeb (qt-creator/tqtc-qt-creator/master) ce27886eeb (qt-creator/tqtc-qt-creator/qds-3.1)
Description
Reproduce:
QString* s; // s is a pointer .. nevertheless I'm lazy and type '.' after s // instead of '->' s.t<Cursor>
After typing the '.' I get a listing of possible methods to choose from.
I type 't'.
This gives me a auto completion pop-up with preselected 'toStdString() const',
exactly what I want so I press <Enter>.
The result is
QString* s;
s->toStrdString()<Cursor>t // '.' replaced by '->' OK, but what about the 't' ?
so I get a 't' after the curser.
If I'm not so lazy and type 'to' after the point. everything is fine.
ps: Clang Code Model with exprimental Clangd activated.