qt-bugs@ issue : none Trolltech task ID : None applied: no author: Alexis Menard Fix deletion of a qgraphicswidget on clear focus even if it doesn't have the focus. Will be included in 4.4.4 --- a/src/gui/graphicsview/qgraphicsitem.cpp +++ b/src/gui/graphicsview/qgraphicsitem.cpp @@ -1951,7 +1951,7 @@ void QGraphicsItem::setFocus(Qt::FocusRe */ void QGraphicsItem::clearFocus() { - if (!d_ptr->scene || !hasFocus()) + if (!d_ptr->scene) return; if (d_ptr->isWidget) { // Invisible widget items with focus must explicitly clear subfocus.