Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qstatusbar.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QSTATUSBAR_H
5#define QSTATUSBAR_H
6
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qwidget.h>
9
11
13
15
16class Q_WIDGETS_EXPORT QStatusBar: public QWidget
17{
19
20 Q_PROPERTY(bool sizeGripEnabled READ isSizeGripEnabled WRITE setSizeGripEnabled)
21
22public:
23 explicit QStatusBar(QWidget *parent = nullptr);
24 virtual ~QStatusBar();
25
26 void addWidget(QWidget *widget, int stretch = 0);
27 int insertWidget(int index, QWidget *widget, int stretch = 0);
28 void addPermanentWidget(QWidget *widget, int stretch = 0);
29 int insertPermanentWidget(int index, QWidget *widget, int stretch = 0);
30 void removeWidget(QWidget *widget);
31
32 void setSizeGripEnabled(bool);
33 bool isSizeGripEnabled() const;
34
35 QString currentMessage() const;
36
37public Q_SLOTS:
38 void showMessage(const QString &text, int timeout = 0);
39 void clearMessage();
40
41
44
45protected:
46 void showEvent(QShowEvent *) override;
47 void paintEvent(QPaintEvent *) override;
48 void resizeEvent(QResizeEvent *) override;
49
50 void reformat();
51 void hideOrShow();
52 bool event(QEvent *) override;
53
54private:
55 Q_DISABLE_COPY(QStatusBar)
56 Q_DECLARE_PRIVATE(QStatusBar)
57};
58
60
61#endif // QSTATUSBAR_H
\inmodule QtCore
Definition qcoreevent.h:45
The QPaintEvent class contains event parameters for paint events.
Definition qevent.h:486
The QResizeEvent class contains event parameters for resize events.
Definition qevent.h:548
The QShowEvent class provides an event that is sent when a widget is shown.
Definition qevent.h:578
The QStatusBar class provides a horizontal bar suitable for presenting status information.
Definition qstatusbar.h:17
void messageChanged(const QString &text)
This signal is emitted whenever the temporary status message changes.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
QOpenGLWidget * widget
[1]
QString text
Combined button and popup list for selecting options.
GLuint index
[2]
GLbitfield GLuint64 timeout
[4]
struct _cl_event * event
#define QT_REQUIRE_CONFIG(feature)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
gridLayout addWidget(nameLabel, 0, 0)
splash showMessage("Loaded modules")