如何在QT中实现自己的标题栏

2025-04-13 23:52:00
推荐回答(1个)
回答1:

调用窗体类的setWindowTitle()函数可以对窗体设置标题。
窗体类继承于QWidget类,其setWindowTitle函数原型:
void QWidget::setWindowTitle(const QString & title); //title是标题内容字符串。