[Qt-creator] Bug in QT Creator autocomplete

Thorbjørn Lindeijer thorbjorn.lindeijer at nokia.com
Mon Jun 22 11:08:26 CEST 2009


ext Patric wrote:
> Hello,
> I'm not sure if this is documented.
> When you try to autocomplete a method which name is "test_on_this()", 
> when you type "test_on" and then add "-" and press ctrl+shift, the 
> result is "test_on-this". Which is not correct.

Since the "-" is not a valid character in an identifier, when you type 
"test_on-", and try to autocomplete, the engine doesn't even look beyond 
the minus (it goes from the cursor backwards to find the expression, but 
the expression is empty in this case).

That it completes "this" is simply because "this" is a C++ keyword, 
which are always included in the completion.

Regards,
Bjørn

-- 
Thorbjørn Lindeijer
Software Engineer
Nokia, Qt Software




More information about the Qt-creator-old mailing list