Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.2, 4.7.0, 5.6.0
-
None
-
ea6a5146397b668bf535ee7249bd4262d6185234 fc65b9a7cbed3fe66e3037501b56949bc1d3ae30
Description
QLayoutStyleInfo requires a widget to init the style from:
m_styleOption.initFrom(widget);
From QGraphicsLinearLayoutPrivate::styleInfo() and QGraphicsGridLayout::styleInfo() we are creating a pointer to a QWidget like:
static QWidget *wid = 0;
if (!wid)
wid = new QWidget;
and then passing it to:
return QLayoutStyleInfo(style, wid);
But that creates a leak. It will be nice to review the QLayoutStyleInfo to update this part of the code. QLayoutStyleInfo is only used in graphics view.
Attachments
Issue Links
- is duplicated by
-
QTBUG-41322 Leak in GraphicsView: Destructor Missing
-
- Closed
-