-
Suggestion
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 4.13.0-beta2
-
None
-
Ubuntu Linux 18.04 x64 w/Unity
QtCreator official 4.13-beta2 snapshot from online installer
Dot-to-arrow completion seems to depend on the context.
It works nicely for assignments, but fails in the function parameter list.
#include <QString>
typedef struct Foo {
int bar;
} Foo;
void baz(Foo *foo)
{
// typing "foo.bar" is correctly completed to foo->bar here
foo->bar = 42;
// and here too
int i = foo->bar;
// but typing "foo.bar" here is *not* corrected
// afterwards, a fix it "did you mean to use '->'?" appears
QString s = QString::number(foo.bar);
}