Obsolete Members for QPaintDevice

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

公共函数

(obsolete) int numColors () const

成员函数文档编制

int QPaintDevice:: numColors () const

使用 colorCount () 代替。

Returns the number of different colors available for the paint device. Since this value is an int, it will not be sufficient to represent the number of colors on 32 bit displays, in this case INT_MAX is returned instead.