The QPixmapCache::Key class can be used for efficient access to the QPixmapCache. More...
Key() | |
~Key() | |
bool | isValid() const |
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.
Constructs an empty Key object.
Destroys the key.
[since 5.7]
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.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qpixmapcache-key.html