4#include <QtGui/QGuiApplication>
5#include <QtQml/QQmlEngine>
6#include <QtQuick/QQuickImageProvider>
7#include <QtQuick/QQuickView>
10#include <QtGui/QPixmap>
11#include <QtGui/QColor>
37int main(
int argc,
char *argv[])
QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) override
Implement this method to return the pixmap with id.
static int exec()
Enters the main event loop and waits until exit() is called, then returns the value that was set to e...
The QColor class provides colors based on RGB, HSV or CMYK values.
QRgb rgba() const noexcept
Returns the RGB value of the color, including its alpha.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
The QQmlEngine class provides an environment for instantiating QML components.
The QQuickImageProvider class provides an interface for supporting pixmaps and threaded image request...
The QQuickView class provides a window for displaying a Qt Quick user interface.
QQmlEngine * engine() const
Returns a pointer to the QQmlEngine used for instantiating QML Components.
void setSource(const QUrl &)
Sets the source to the url, loads the QML component and instantiates it.
constexpr int height() const noexcept
Returns the height.
constexpr int width() const noexcept
Returns the width.
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QUrl fromLocalFile(const QString &localfile)
Returns a QUrl representation of localFile, interpreted as a local file.
void show()
Shows the window.
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
QLatin1StringView QLatin1String
#define QStringLiteral(str)
QApplication app(argc, argv)
[0]