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?
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?
You can select all items in region with QGraphicsView::items and set QGraphicsItem::ItemIgnoresTransformations flag to all of them.
A camel can go 14 days without drink,
I can't!!!
d_stranz (13th June 2011)
That only makes it ignore zooming, but the items still move along with the canvas when scrolled.
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.
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.
Bookmarks