[Solved] QtCreator code completion not working when invoking constructors with enclosing braces
-
Hi all,
I have a problem with QtCreator and my coding style.
I'm using QtCreator 3.2.2.Both code completion and syntax highlighting do not work properly when invoking a constructor with enclosing braces.
For example:@class C
{
public:
C() {}
~C() {}void foo() {}
};
C * myobj1 = new C();
myobj1->foo(); // code completion does not showC * myobj2 = new C;
myobj2->foo(); // code completion is properly shown
@After initializing myobj1, when I access it through the arrow operator no code completion is available.
Additionally, myobj1 is not properly highlighted according to syntax highlighting.Is there a solution to this issue or do I have to resort to omitting the enclosing braces?
Thanks in advance -
It's slightly safer not to use those parentheses, see "this":http://stackoverflow.com/questions/620137/do-the-parentheses-after-the-type-name-make-a-difference-with-new.
But Qt Creator should still work in both cases. I have verified and I get this behaviour with Qt Creato 3.2.2. Please try with newest release (3.3) and if it is still there, please file a bug report.
-
I found following "BUG":https://bugreports.qt.io/browse/QTCREATORBUG-13122.
It seem to be closed with QtCreator 3.3.0.
I will try with 3.3.0 (at the moment qt site is down :O)! -
Yes, the security protocol is being updated on the server and the site is not stable at the moment.
Ok great, so it is probably fixed.
-
issue is solved in QtCreator 3.3.0!
thanks! -
Great, happy further coding :-)