How to change the Title of the window in Qt?

tna0y picture tna0y · May 15, 2012 · Viewed 110.2k times · Source

How to change the title of the window in Qt? (Both for QDialog and QMainWindow.)

Answer

UmNyobe picture UmNyobe · May 15, 2012
void    QWidget::setWindowTitle ( const QString & )

EDIT: If you are using QtDesigner, on the property tab, there is an editable property called windowTitle which can be found under the QWidget section. The property tab can usually be found on the lower right part of the designer window.