234 qWarning(
"ImageProvider supports Image type but has not implemented requestImage()");
260 qWarning(
"ImageProvider supports Pixmap type but has not implemented requestPixmap()");
ImageType
Defines the type of image supported by this image provider.
QDeclarativeImageProvider::ImageType type
virtual QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize)
Implement this method to return the pixmap with id.
#define QT_END_NAMESPACE
This macro expands to.
virtual ~QDeclarativeImageProvider()
Destroys the QDeclarativeImageProvider.
The QString class provides a Unicode character string.
#define QT_BEGIN_NAMESPACE
This macro expands to.
Q_CORE_EXPORT void qWarning(const char *,...)
QDeclarativeImageProvider(ImageType type)
Creates an image provider that will provide images of the given type.
The QImage class provides a hardware-independent image representation that allows direct access to th...
QDeclarativeImageProviderPrivate * d
The Image element displays an image in a declarative user interface.
The QPixmap class is an off-screen image representation that can be used as a paint device...
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
ImageType imageType() const
Returns the image type supported by this provider.
virtual QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize)
Implement this method to return the image with id.