Envision
Envision copied to clipboard
Implement scrollable surfaces for items
Currently, all children of an item are always rendered and they are visible in their entirety.
In some cases (e.g. the output console in ConsoleOverlay
) we need a way to only show a subset of the children - a way to scroll the contents.
So for this I would suggest to use a QGraphicsView add it to the scene and inside the QGraphicsView show a scene which contains everything that has to scrollable.
Check also Mailing list discussion
What do you think?
Hmm, this actually feels like a super heavy approach. I was thinking more along the lines of having a normal item that has the QGraphicsItem::ItemClipsChildrenToShape flag set: http://doc.qt.io/qt-5/qgraphicsitem.html#GraphicsItemFlag-enum