Unity 8
|
#include <plugins/ImageCache/ImageCache.h>
Inherits QQuickImageProvider.
Public Member Functions | |
QImage | requestImage (const QString &id, QSize *size, const QSize &requestedSize) override |
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
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.