QT creator 添加状态栏的方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ben_xiao_hai_123/article/details/79836500

1.在需要增加状态栏的代码区,编辑一下内容即可

 this->ui->statusBar->showMessage("*******科技有限公司@2018(Designed by Kay)");
2.QStatusBar继承了QWidget。

openAction->setStatusTip(tr("(Designed by kay)"));
注意:openAction是一个QAction类。

猜你喜欢

转载自blog.csdn.net/ben_xiao_hai_123/article/details/79836500