QT状态栏QStatusBar
来源:互联网 发布:淘宝靠谱吉他 编辑:程序博客网 时间:2024/05/22 05:11
状态栏显示的信息分3种
1. 一般信息,用QLabel 代表
2.
3. 临时信息,指定信息现实的时间。时间到即信息消失
locationLabel_ = new QLabel("July");
//locationLabel_ = new QLabel;
locationLabel_->setAlignment(Qt::AlignCenter); //水平居中(HCenter)。
//locationLabel->setMinimumSize(200,15); //设置控件最小尺度
locationLabel_->setMinimumSize(locationLabel_->sizeHint());
aixLabel_ = new QLabel("\"CTRL + H\" for help");
//Optional
//statusBar()->setStyleSheet(QString("QStatusBar::item{border: 0px}")); // 设置不显示label的边框
statusBar()->setSizeGripEnabled(false); //设置是否显示右边的大小控制点
statusBar()->addWidget(locationLabel_);
//statusBar()->addWidget(aixLabel_, 1);
QLabel *per1 = new QLabel("Ready1", this);
QLabel *per2 = new QLabel("Ready2", this);
QLabel *per3 = new QLabel("Ready3", this);
statusBar()->addPermanentWidget(per1); //现实永久信息
statusBar()->addPermanentWidget(per2);
statusBar()->insertPermanentWidget(2, per3);
statusBar()->showMessage("Status is here...", 3000); // 显示临时信息,时间3秒钟.
- QT状态栏QStatusBar
- QT状态栏QStatusBar
- QT之qss教程-QStatusBar
- Qt学习笔记(2) QMenu QToolBar ContextMenu QStatusBar
- Qt:QStatusBar 和 QProgressBar 详细讲解(源码下载)
- QT 状态栏
- Qt状态栏
- QStatusBar类
- QStatusBar类
- QStatusBar类
- QtCreator 应用程序主窗口---多文档QMdiArea(MDI多文档界面的区域),QDockWidget(Dock部件),QStatusBar(状态栏)
- QT控件之状态栏
- Qt添加状态栏
- Qt 创建状态栏
- 【Qt开发】状态栏设置
- 设置Qt状态栏
- Qt-状态栏的应用
- QStatusBar的学习
- 安卓PopupWindow
- mysql 存储过程
- Python小练习:逆波兰表达式计算
- jeecg-easypoi-2.0.3版本发布
- Two Sum
- QT状态栏QStatusBar
- 通信算法之六:通信系统算法设计、链路理论预算、与实际链路运算
- ACM 中JAVA的应用
- QStatusBar类
- Netstat (| tcpdump | ipcs | ipcrm待补)
- MySQL 最基本的SQL语法/语句
- uva 1358 - Generator(KMP+期望)
- QToolBar上的控件靠右侧对齐的方法
- 【java类的设计模式—01】单例模式(Singleton pattern)