diff --git a/src/widgets/graphicsview/qgraphicsitem.cpp b/src/widgets/graphicsview/qgraphicsitem.cpp index 62eab6a7a280254e848e7911c1c657f9af27b1e4..3001e23d5dc65a2e202b21562417130d93c418a3 100644 --- a/src/widgets/graphicsview/qgraphicsitem.cpp +++ b/src/widgets/graphicsview/qgraphicsitem.cpp @@ -1658,8 +1658,8 @@ const QGraphicsObject *QGraphicsItem::toGraphicsObject() const the parent. You should not \l{QGraphicsScene::addItem()}{add} the item to the scene yourself. - Calling this function on an item that is an ancestor of \a newParent - have undefined behaviour. + The behavior when calling this function on an item that is an ancestor of + \a newParent is undefined. \sa parentItem(), childItems() */