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.
答案 0 :(得分:1)
编写Q_PROPERTY后,只需点击Escape
即可退出自动完成属性,并手动更改setter的名称。