Warning, file /include/QtWidgets/qstatusbar.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004 #ifndef QSTATUSBAR_H
0005 #define QSTATUSBAR_H
0006
0007 #include <QtWidgets/qtwidgetsglobal.h>
0008 #include <QtWidgets/qwidget.h>
0009
0010 QT_REQUIRE_CONFIG(statusbar);
0011
0012 QT_BEGIN_NAMESPACE
0013
0014 class QStatusBarPrivate;
0015
0016 class Q_WIDGETS_EXPORT QStatusBar: public QWidget
0017 {
0018 Q_OBJECT
0019
0020 Q_PROPERTY(bool sizeGripEnabled READ isSizeGripEnabled WRITE setSizeGripEnabled)
0021
0022 public:
0023 explicit QStatusBar(QWidget *parent = nullptr);
0024 virtual ~QStatusBar();
0025
0026 void addWidget(QWidget *widget, int stretch = 0);
0027 int insertWidget(int index, QWidget *widget, int stretch = 0);
0028 void addPermanentWidget(QWidget *widget, int stretch = 0);
0029 int insertPermanentWidget(int index, QWidget *widget, int stretch = 0);
0030 void removeWidget(QWidget *widget);
0031
0032 void setSizeGripEnabled(bool);
0033 bool isSizeGripEnabled() const;
0034
0035 QString currentMessage() const;
0036
0037 public Q_SLOTS:
0038 void showMessage(const QString &text, int timeout = 0);
0039 void clearMessage();
0040
0041
0042 Q_SIGNALS:
0043 void messageChanged(const QString &text);
0044
0045 protected:
0046 void showEvent(QShowEvent *) override;
0047 void paintEvent(QPaintEvent *) override;
0048 void resizeEvent(QResizeEvent *) override;
0049
0050 void reformat();
0051 void hideOrShow();
0052 bool event(QEvent *) override;
0053
0054 private:
0055 Q_DISABLE_COPY(QStatusBar)
0056 Q_DECLARE_PRIVATE(QStatusBar)
0057 };
0058
0059 QT_END_NAMESPACE
0060
0061 #endif