PDA

View Full Version : Graphics View or Paint ?



igor
19th January 2007, 02:05
I am writing an application to create line graphics with text for multi-page output to a graphic file (png/jpg) or pdf.

Two questions:

1. Should I do each page as a separate graphic/image ?
2. What are the advantages/disadvantages of using either the GraphicsView system or Paint system to do this ?

Thanks.:D

Glitch
19th January 2007, 02:46
You want to use QPainter. QGraphicsView is a spritefield of 2D objects. Not a gerneral purpose drawing system.

--Justin

wysota
19th January 2007, 09:35
You want to use QPainter. QGraphicsView is a spritefield of 2D objects. Not a gerneral purpose drawing system.


It depends what he intends to do with the graphics. If he wants to start moving objects around or changing their properties, then the graphicsview might get handy.

igor
20th January 2007, 22:31
It depends what he intends to do with the graphics. If he wants to start moving objects around or changing their properties, then the graphicsview might get handy.
The graphics are going to be static. Adjusting input parameters in another portion of the window will cause a complete redraw.

Sounds like "Paint" is the way to go.

However, what widget do I "paint" on ? That is not clear in Qt 4

wysota
21st January 2007, 13:21
QWidget? :)