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.
Edward Strange
The method is setWindowTitle()
:
setWindowTitle(const QString &)
来源:https://stackoverflow.com/questions/4549859/how-to-set-qmainwindow-title