Obsolete Members for QGraphicsSvgItem

以下成員源於類 QGraphicsSvgItem 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(obsolete) bool isCachingEnabled () const
(obsolete) void setCachingEnabled (bool caching )

成員函數文檔編製

bool QGraphicsSvgItem:: isCachingEnabled () const

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 QGraphicsItem::cacheMode () 代替。

void QGraphicsSvgItem:: setCachingEnabled ( bool caching )

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

使用 QGraphicsItem::setCacheMode () instead. Passing true to this function is equivalent to QGraphicsItem::setCacheMode ( QGraphicsItem::DeviceCoordinateCache ).

另請參閱 isCachingEnabled ().