I am currently reading the contents of a *.DHW file (storing a collection of points which make up the strokes of handwritten text) and displaying the contents in a QGraphicsScene/View. However, since you don't start writing at the margins, the QGraphicsScene is never set to the actual size of the paper. And the QGraphicsScene sets it's boundaries according to what it contains. I have been struggling with setGeometry() and such functions, but I still can't get the scene to display properly.
How can I set the size of the scene arbitrarily? I need to get the scene to display the whitespace margins of the paper as well as the text. Also, when zooming in and out it is also imperative that the actual paper size is maintained, as opposed to the default QGraphicsScene behavior which adds in whitespace when you zoom out using the scale() function, and cuts off paper when you zoom in.
Has anyone done something like this before?
Bookmarks