QPixmapCache::Key Class
class QPixmapCache::KeyThe QPixmapCache::Key class can be used for efficient access to the QPixmapCache. More...
Public Functions
Related Non-Members
(since 6.6) size_t | qHash(const QPixmapCache::Key &key, size_t seed = 0) |
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.
[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.
[noexcept]
void Key::swap(QPixmapCache::Key &other)
Swaps this key with other. This operation is very fast and never fails.
Related Non-Members
[noexcept, since 6.6]
size_t qHash(const QPixmapCache::Key &key, size_t seed = 0)
Returns the hash value for the key, using seed to seed the calculation.
This function was introduced in Qt 6.6.
© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.