Qt:Документация 4.3.2/qpixmap-obsolete
Материал из Wiki.crossplatform.ru
![]() | Внимание: Актуальная версия перевода документации находится здесь |
__NOTOC__
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции |
Содержание |
[править] Obsolete Members for QPixmap
The following class members are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
[править] Открытые функции
- int serialNumber () const (obsolete)
[править] Описание функций-членов
[править] int QPixmap::serialNumber () const
Returns a number that identifies the contents of this QPixmap object. Distinct QPixmap objects can only have the same serial number if they refer to the same contents (but they don't have to).
Use cacheKey() instead.
Warning: The serial number doesn't necessarily change when the pixmap is altered. This means that it may be dangerous to use it as a cache key. For caching pixmaps, we recommend using the QPixmapCache class whenever possible.
Copyright © 2007 Trolltech | Trademarks | Qt 4.3.2
|