Skip to content
Snippets Groups Projects
ColorImageProvider.h 301 B
Newer Older
#include <QQuickImageProvider>

class ColorImageProvider : public QQuickImageProvider
{
public:
        ColorImageProvider()
          : QQuickImageProvider(QQuickImageProvider::Pixmap)
        {}

        QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) override;
};