Wazman
26th January 2010, 16:28
I would like to create a 2D Plotter that allows a user to plot various items (Position, lines, etc) on a map of the world. I'm concerned about the organization of where to put the attributes a features of this application.
I need to give the user the ability to control the zoom (in/out) of the scene, Capturing a image of the plot and saving it to either a file or printing it. The user must be also able to interact with the plot via the mouse.
Should I put the zoom functionality into the reimplemented QGraphicsView or instead the QGraphicsScene. The same for printing/saving the plot.
I have a feeling that I need to handle the mouse interaction in my object that reimplements the QGraphicScene but handling the mouse events do I need to use QGraphicsSceneMouseEvent instead of QMouseEvent?
I'm using the Qt 4.6.1 Version (Its great btw) but I've also noticed that the class QMatrix is now listed as being obsolete with the recommendation not to use it. But there are functions throughout the Graphics View Framework that seem to rely on it.
Thank you for your time
I need to give the user the ability to control the zoom (in/out) of the scene, Capturing a image of the plot and saving it to either a file or printing it. The user must be also able to interact with the plot via the mouse.
Should I put the zoom functionality into the reimplemented QGraphicsView or instead the QGraphicsScene. The same for printing/saving the plot.
I have a feeling that I need to handle the mouse interaction in my object that reimplements the QGraphicScene but handling the mouse events do I need to use QGraphicsSceneMouseEvent instead of QMouseEvent?
I'm using the Qt 4.6.1 Version (Its great btw) but I've also noticed that the class QMatrix is now listed as being obsolete with the recommendation not to use it. But there are functions throughout the Graphics View Framework that seem to rely on it.
Thank you for your time