In that case that statement in Qt doc is not really true :
They are simpler design, but they are a huge flexibility trade-off.The QGraphicsProxyWidget class provides a proxy layer for embedding a QWidget in a QGraphicsScene.
QGraphicsProxyWidget embeds any QWidget-based widget
What I'm trying to do is the following :
I'm coding a custom graphicsView based list that supports the following :
- Mixing QGraphicsItem and QWidget seamlessly.
That way I'm getting the best of both world : having a QWidget enabled list that also supports QGraphicsItem in case I need 10 000 low memory items.
(As you can see I don't like the concept of model view delegates).
I've also developped my own QGroupBox based on my QGraphicsView list which also supports both QGraphicsItem and widget.
Only problem is when I mix my list and my groupBox with a QWidget, QPainter error blows up.
I think that might be a Qt 4.4.3 design flaw.




Reply With Quote



Bookmarks