Qt 5.10 Book Examples
chapter60
ImageProvider
ImageProvider.h
Go to the documentation of this file.
1
// ======================================================================
2
// ImageProvider.h
3
// ======================================================================
4
// This file is a part of the book
5
// "Qt 5.10 Professional programming with C++"
6
// http://qt-book.com
7
// ======================================================================
8
// Copyright (c) 2017 by Max Schlee
9
// ======================================================================
10
11
#pragma once
12
13
#include <QObject>
14
#include <QImage>
15
#include <QQuickImageProvider>
16
17
// ======================================================================
18
class
ImageProvider
:
public
QQuickImageProvider {
19
private
:
20
QImage brightness(
const
QImage& imgOrig,
int
n);
21
22
public
:
23
ImageProvider
();
24
25
QImage
requestImage
(
const
QString&, QSize*,
const
QSize&);
26
};
ImageProvider::ImageProvider
ImageProvider()
Definition:
ImageProvider.cpp:14
ImageProvider::requestImage
QImage requestImage(const QString &, QSize *, const QSize &)
Definition:
ImageProvider.cpp:47
ImageProvider
Definition:
ImageProvider.h:18
Generated by
1.8.14