Qt Creator - autocompletion not working
-
I'm just starting out with Qt and have a general question.
First I create a C++ gui app, then I go to the ui designed and add a pushButton. I go back to the mainwindow.cpp file, and type in "ui->" ...at this point the autocompletion pops up, but my new "pushButton" item is not in the list. If I manually type in "ui->pushButton->setText("hi");", it will compile and run. Why doesn't my new object appear in the autocomplete list?
I've watched several videos about Qt on youtube and in all of those the autocompletion works for added ui objects.