Key Class
class QPixmapCache::KeyThe QPixmapCache::Key class can be used for efficient access to the QPixmapCache. \inmodule QtGui \since 4.6. More...
Public Functions
| Key() | |
| Key(const Key &other) | |
| Key(Key &&other) | |
| ~Key() | |
| bool | isValid() const |
| void | swap(Key &other) |
| bool | operator!=(const Key &key) const |
| Key & | operator=(Key &&other) |
| Key & | operator=(const Key &other) |
| bool | operator==(const Key &key) const |
Detailed Description
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.
Member Function Documentation
Key::Key()
Constructs an empty Key object.
Key::Key(const Key &other)
\internalConstructs a copy of other.
[noexcept] Key::Key(Key &&other)
\internal\since 5.6
[noexcept] Key::~Key()
Destroys the key.
[noexcept] 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. \since 5.7
[noexcept] void Key::swap(Key &other)
\internal\since 5.6
bool Key::operator!=(const Key &key) const
\internal
[noexcept] Key &Key::operator=(Key &&other)
\internal\since 5.6
Key &Key::operator=(const Key &other)
\internal
bool Key::operator==(const Key &key) const
\internal
Returns true if this key is the same as the given key; otherwise returns false.