A
A
Alukardd2012-05-04 20:24:12
Qt
Alukardd, 2012-05-04 20:24:12

Auto-substitution is buggy in Qt Creator 1.3.1

Auto-substitution in Qt Creator is buggy.
I see the reason in that I use multiline assignment in QString. It looks like this:

QString str;
str = "string1\n\
        string2\n\
        string3\n\
        string4";
QString str2;
str2. // Всё тут автоподстановка уже не работает!
The problem is also expressed that instead of substituting the prototype of the method with cpp when writing void MyClass::method( , it gives a hint as if I were calling this method ...
If you collapse this assignment into one line, then everything will work as it should, but this is extreme measure.The
code compiles without problems and works as it should, but you can’t write everything manually, not a notepad, however!

Tell me how to return the substitution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gribozavr, 2012-05-04
@Alukardd

Rewrite like this

str = "string1\n"
      "string2\n";

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question