Obsolete Members for QGraphicsSvgItem

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

公共函數

(棄用) bool isCachingEnabled () const
(棄用) void setCachingEnabled (bool caching )

成員函數文檔編製

bool QGraphicsSvgItem:: isCachingEnabled () const

This function is deprecated. We strongly advise against using it in new code.

使用 QGraphicsItem::cacheMode () 代替。

void QGraphicsSvgItem:: setCachingEnabled ( bool caching )

This function is deprecated. We strongly advise against using it in new code.

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

另請參閱 isCachingEnabled ().