For new Qt users, this is a bit more confusing than it sounds if you use the QT Designer and .ui files.
At first I tried to use ui->setWindowTitle , but this does not exist. ui not a QDialog or QMainWindow .
The owner of ui is QDialog or QMainWindow , .ui just describes how to lay it out. In this case you should use:
this->setWindowTitle("New Title");
I hope this helps someone else.
user1935257 Dec 28 '12 at 19:26 2012-12-28 19:26
source share