[Qt-creator] Overzealously auto-replacing . with ->

Adam Higerd ahigerd at timeips.com
Thu Jan 29 17:11:28 CET 2009


Consider the following code:

("string literal" + myQString).toUtf8()

Qt Creator currently will not let you type this. It evaluates the data 
type of (const char* + QString) as const char* and, being a pointer 
type, auto-replaces the . with ->. There doesn't seem to be a way to 
tell it NOT to do that, or to override its decision once it's been made.

The workaround is to type ".." (which is replaced with "->.") and then 
delete the -> afterward.

If there's an option to disable the auto-replacement that's a step in 
the right direction but it would be nice to have a way to say "yes I 
really mean . here" without having to disable it globally.

/s/ Adam Higerd



More information about the Qt-creator-old mailing list