How to get out of code completion mode in Qt Creator

时间:2018-04-20 21:21:13

标签: qt qt-creator

I got into a situation when using code completion in Qt Creator. I wanted to enter the line:

Q_PROPERTY(QStringList allIngredients READ allIngredients WRITE
    setAllIngredients NOTIFY allIngredientsChanged)

But because of code completion, the editor would only let me enter:

Q_PROPERTY(QStringList allIngredients READ allIngredients WRITE
    setallIngredients NOTIFY allIngredientsChanged)

(note the lower case "a" in "setall...")

How do I get out of the code completion mode so that I can correct the code?

I am using Qt Creator 3.5.1.

1 个答案:

答案 0 :(得分:1)

编写Q_PROPERTY后,只需点击Escape即可退出自动完成属性,并手动更改setter的名称。

相关问题