Compatibility Members for QStatusBar

The following members of class QStatusBarare part of the Qt compatibility layer. We advise against using them in new code.

Public Functions

QStatusBar(QWidget * parent, const char * name)
void addWidget(QWidget * widget, int stretch, bool permanent)
  • 57 public functions inherited from QWidget
  • 8 public functions inherited from QObject
  • 8 public functions inherited from QPaintDevice

Public Slots

void clear()
void message(const QString & message, int timeout = 0)
  • 1 public slot inherited from QWidget

Member Function Documentation

QStatusBar::QStatusBar(QWidget * parent, const char * name)

Constructs a status bar with a size grip and the given parent and object name.

Use the QStatusBar() constructor and the QObject::setObjectName() function instead.

For example, if you have code like

QStatusBar *myStatusBar = new QStatusBar(parent, name);

you can rewrite it as

QStatusBar *myStatusBar = new QStatusBar(parent);
myStatusBar->setObjectName(name);

void QStatusBar::addWidget(QWidget * widget, int stretch, bool permanent)

Use addWidget() or addPermanentWidget() instead, depending on the value of the permanent parameter.

For example, if you have code like

QStatusBar *myStatusBar;
myStatusBar->addWidget(widget, stretch, permanent);  // permanent == true

you can rewrite it as

QStatusBar *myStatusBar;
myStatusBar->addPermanentWidget(widget, stretch);

[slot] void QStatusBar::clear()

Use the clearMessage() function instead.

[slot] void QStatusBar::message(const QString & message, int timeout = 0)

Use the showMessage() function instead.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.