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
qsplashscreen.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 QSPLASHSCREEN_H
5#define QSPLASHSCREEN_H
6
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtGui/qpixmap.h>
9#include <QtWidgets/qwidget.h>
10
11QT_REQUIRE_CONFIG(splashscreen);
12
14
16
17class Q_WIDGETS_EXPORT QSplashScreen : public QWidget
18{
20public:
21 explicit QSplashScreen(const QPixmap &pixmap = QPixmap(), Qt::WindowFlags f = Qt::WindowFlags());
22 QSplashScreen(QScreen *screen, const QPixmap &pixmap = QPixmap(), Qt::WindowFlags f = Qt::WindowFlags());
23 virtual ~QSplashScreen();
24
25 void setPixmap(const QPixmap &pixmap);
26 const QPixmap pixmap() const;
27 void finish(QWidget *w);
28 void repaint();
29 QString message() const;
30
31public Q_SLOTS:
33 const QColor &color = Qt::black);
34 void clearMessage();
35
38
39protected:
40 bool event(QEvent *e) override;
41 virtual void drawContents(QPainter *painter);
42 void mousePressEvent(QMouseEvent *) override;
43
44private:
45 Q_DISABLE_COPY(QSplashScreen)
46 Q_DECLARE_PRIVATE(QSplashScreen)
47};
48
50
51#endif // QSPLASHSCREEN_H
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
\inmodule QtCore
Definition qcoreevent.h:45
\inmodule QtGui
Definition qevent.h:196
The QPainter class performs low-level painting on widgets and other paint devices.
Definition qpainter.h:46
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
The QScreen class is used to query screen properties. \inmodule QtGui.
Definition qscreen.h:32
The QSplashScreen widget provides a splash screen that can be shown during application startup.
void messageChanged(const QString &message)
This signal is emitted when the message on the splash screen 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
uint alignment
Combined button and popup list for selecting options.
@ AlignLeft
Definition qnamespace.h:144
@ black
Definition qnamespace.h:30
GLfloat GLfloat GLfloat w
[0]
GLfloat GLfloat f
GLuint color
[2]
GLuint GLsizei const GLchar * message
struct _cl_event * event
QScreen * screen
[1]
Definition main.cpp:29
#define QT_REQUIRE_CONFIG(feature)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
widget render & pixmap
QPainter painter(this)
[7]
imageLabel setPixmap(QPixmap::fromImage(image))
splash showMessage("Loaded modules")