Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement scrollable surfaces for items #80

Open
dimitar-asenov opened this issue Jan 26, 2015 · 2 comments
Open

Implement scrollable surfaces for items #80

dimitar-asenov opened this issue Jan 26, 2015 · 2 comments

Comments

@dimitar-asenov
Copy link
Owner

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.

@lukedirtwalker
Copy link
Collaborator

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?

@dimitar-asenov
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants