[Qt-interest] How to implement a graphical curve drawing/editing tool

Sean Harmer sean.harmer at maps-technology.com
Mon Dec 20 11:17:16 CET 2010


On 20/12/2010 09:44, hakiim the dream wrote:
> Hi all, I need to implement a graphical curve editing tool.
> The interface would be similar to the Curve tool of Gimp or PaintDotNet,
> aiming at image adjustment.
> The user can edit any point on the initial curve(y=x line) by clicking
> and then dragging the point via mouse move.
> The curve then should instantly be updated based on the new position of
> its edited point, taking the proper shape via mathematical euqations.
> I have basic knowledge about QGraphicsView and QGraphicsScene, but this
> task seems a bit harder for my level of experience.
> Any ideas or any directions to similar available applications/source
> codes are highly appreciated.

Take a look at the path stroking demo for inspiration:

http://doc.qt.nokia.com/latest/demos-pathstroke.html

Should not be too hard to port across to QGraphicsView framework if you 
do not want a widget-based solution.

Good luck,

Sean



More information about the Qt-interest-old mailing list