From 7f324c4979bf83d68a18cbb4f8cd45752deb2e7c Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Sun, 26 Aug 2012 13:34:15 +0100 Subject: [PATCH] Document how to remove a QGraphicsEffect. You can remove an effect by setting 0, but this wasn't documented. Change-Id: I2d86875d8554cb26b4d88b8ce04b4daa9792c5d5 Reviewed-by: Casper van Donderen --- src/widgets/graphicsview/qgraphicsitem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/graphicsview/qgraphicsitem.cpp b/src/widgets/graphicsview/qgraphicsitem.cpp index a94752e7a6..27cd4e62ca 100644 --- a/src/widgets/graphicsview/qgraphicsitem.cpp +++ b/src/widgets/graphicsview/qgraphicsitem.cpp @@ -2712,7 +2712,8 @@ QGraphicsEffect *QGraphicsItem::graphicsEffect() const /*! Sets \a effect as the item's effect. If there already is an effect installed on this item, QGraphicsItem will delete the existing effect before installing - the new \a effect. + the new \a effect. You can delete an existing effect by calling + setGraphicsEffect(0). If \a effect is the installed on a different item, setGraphicsEffect() will remove the effect from the item and install it on this item.