PDA

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



penny
25th February 2011, 12: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
26th February 2011, 00:46
You can select all items in region with QGraphicsView::items and set QGraphicsItem::ItemIgnoresTransformations flag to all of them.

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

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

penny
14th March 2011, 07: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, 08: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.