状态栏的概念和意义
-状态栏是应用程序中输出简要信息的区域
-状态栏一般位于主窗口的最底部
-状态栏中的消息类型
·实时消息,如:当前程序状态
·永久消息,如:程序版本号,机构名称
·进度消息,如:进度条提示,百分比提示
在Qt中提供与状态栏相关的类组件
-状态栏(QStatusBar)
-任意组件(QWidget)
// call memeber fucntion
QStatusBar *sb = statusBar();
// create widget for Status Bar
QLabel *l = new QLabel("Label");
QLineEdit *e = newe QLineEdit();
//add widget to status bar
sb->addPermanentWidget(l);
sb->addPermanentWidget(e);
//outpu