Envision icon indicating copy to clipboard operation
Envision copied to clipboard

Implement scrollable surfaces for items

Open dimitar-asenov opened this issue 10 years ago • 2 comments

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.

dimitar-asenov avatar Jan 26 '15 15:01 dimitar-asenov

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?

lukedirtwalker avatar May 18 '15 11:05 lukedirtwalker

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

dimitar-asenov avatar May 18 '15 17:05 dimitar-asenov