Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何设置 QMainWindow 的标题?
我尝试谷歌搜索并找到 setCaption(),但它似乎不再适用于 Qt 4。
方法是setWindowTitle():
setWindowTitle()
setWindowTitle(const QString &)
http://doc.qt.io/qt-4.8/qwidget.html#windowTitle-prop