The QPixmapCache::Key 類可以用於有效訪問 QPixmapCache . 更多...
| 頭: | #include <Key> |
| qmake: | QT += gui |
| Since: | Qt 4.6 |
| Key () | |
| ~Key () | |
| bool | isValid () const |
The QPixmapCache::Key 類可以用於有效訪問 QPixmapCache .
使用 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。
返迴
true
if there is a cached pixmap associated with this key. Otherwise, if pixmap was flushed, the key is no longer valid.
該函數在 Qt 5.7 引入。