houbysoft
houbysoft

Reputation: 33420

How to set QMainWindow title

How do I set the title of a QMainWindow?

I tried googling and found setCaption(), but it appears it no longer works in Qt 4.

Upvotes: 38

Views: 38152

Answers (1)

Edward Strange
Edward Strange

Reputation: 40897

The method is setWindowTitle():

setWindowTitle(const QString &)

http://doc.qt.io/qt-4.8/qwidget.html#windowTitle-prop

Upvotes: 67

Related Questions