Header: | #include <QCImagePool> |
int | byteCount() const |
void | clear() |
bool | contains(const QString & key) const |
int | count() const |
QImage | image(const QString & key) const |
void | insert(const QString & key, const QImage & image) |
QCImagePool * | instance() |
QString | normalizeKey(const QString & key) |
QCImagePool(QObject * parent = 0) |
QCImagePool is a singleton component for holding image data.
You may insert images to this object manually, or uses QCImageLoader to load a batch of images from a folder.
Then the load images can be used by component like QCImageProvider.
All the functions within QCImagePool are thread safe.
[protected]
QCImagePool::QCImagePool(QObject * parent = 0)Remove all the images
Return TRUE if the image pool contains the image with key.
Return number of images in QCImagePool
Get the image with key. If it is not existed, it will return an empty image.
Insert the image with key into the image pool.
[static]
QCImagePool * QCImagePool::instance()Returns the global QCImagePool instance.
[static]
QString QCImagePool::normalizeKey(const QString & key)Remove suffix and convert to lowercase.