Key Class

(QPixmapCache::Key)

The QPixmapCache::Key class can be used for efficient access to the QPixmapCache. 更多...

头文件: #include <Key>
qmake: QT += gui
开始支持版本: Qt 4.6

公有函数

Key()
~Key()
bool isValid() const

详细描述

The QPixmapCache::Key class can be used for efficient access to the QPixmapCache.

Use QPixmapCache::insert() to receive an instance of Key generated by the pixmap cache. You can store the key in your own objects for a very efficient one-to-one object-to-pixmap mapping.

成员函数

Key::Key()

Constructs an empty Key object.

Key::~Key()

Destroys the key.

bool Key::isValid() const

Returns true if there is a cached pixmap associated with this key. Otherwise, if pixmap was flushed, the key is no longer valid.

This function was introduced in Qt 5.7.