Unity 8
ImageCache Class Reference

#include <plugins/ImageCache/ImageCache.h>

Inherits QQuickImageProvider.

Public Member Functions

QImage requestImage (const QString &id, QSize *size, const QSize &requestedSize) override
 

Detailed Description

This class accepts an id formulated like a URL. So you'd use something like:

Image { source: "image://unity8imagecache/file:///usr/share/..." }

Right now, we only support file:/// URLs. We do accept some flags though:

?name=NAME

  • This will use NAME as the cache lookup key instead of the provided URL.

We don't do any cleaning of old cached files yet. So you may want to always provide a name to avoid leaving lots of files around.

Definition at line 40 of file ImageCache.h.


The documentation for this class was generated from the following files: