Obsolete Members for QIcon

以下成员源于类 QIcon 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) int serialNumber () const

成员函数文档编制

int QIcon:: serialNumber () const

返回的数字标识内容对于此 QIcon 对象。截然不同的 QIcon objects can have the same serial number if they refer to the same contents (but they don't have to). Also, the serial number of a QIcon object may change during its lifetime.

使用 cacheKey () 代替。

A null icon always has a serial number of 0.

Serial numbers are mostly useful in conjunction with caching.

另请参阅 QPixmap::serialNumber ().