PDA

View Full Version : Can a portion of QGraphicsView be made to freeze?



penny
25th February 2011, 11:24
I'm using QGraphicsView to plot data. Is it possible to freeze portion of the QGraphicsView and apply transformations such as scrolling and zooming only on the other part?

mcosta
25th February 2011, 23:46
You can select all items in region with QGraphicsView::items and set QGraphicsItem::ItemIgnoresTransformations flag to all of them.

penny
4th March 2011, 09:05
That only makes it ignore zooming, but the items still move along with the canvas when scrolled.

wysota
4th March 2011, 12:18
What do you need this functionality for?

penny
14th March 2011, 06:08
I have a plot, with huge real time data, and on the left side a list of text. on zooming scrolling i want the text to stay in its place and make only the plots move.

wysota
14th March 2011, 07:43
So move the items back to their original position after you scroll the view or overpaint the "static" content on the viewport directly instead of having them as items.