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.