C++ – How to change the Title of the window in Qt

cqttitlewindow

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

Best Answer

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.