Painting on SVG file..Using mouse Events..?
-
Well, I'm able to load and save the SVG contents to a file. Really thank you for that.
But now next step eludes me that how can I do some painting using mouse events (Even a simple line)..and again the contents of painting may be a line or something must be SVG again..!
Can anybody help please..??
-
You should use "QtSvg Module":http://qt-project.org/doc/qt-4.8/qtsvg.html. Please check the link to official documentation for details.
-
[quote author="Aniket" date="1331484212"]Thanks a lot..:)
It works.!
Now i'm able to load SVG in View.
Now will you please help me in how to Edit SVG and save it back in the same format PLEASE..?[/quote]I recommend you to have a look at thread "How to save a QGraphicsScene to an SVG file?":http://qt-project.org/forums/viewthread/6139 "task_struct":http://qt-project.org/member/8817 has given a simple example how to save svg at it using "QSvgGenerator":http://qt-project.org/doc/qt-4.8/qsvggenerator.html .
-
I am making an SVG editor using Qt.
I'm able to load the SVG image on the QGraphicsView, but the net step eludes me - how can I edit this like a paint application? Then how do I save it back into an SVG file?
Like if I load svg file then can I draw simple SVG lines on it and save the new file as SVG?
Help me please..:(
[Merged these two threads. Please don't duplicate your posts. mlong]
-
Well, I’m able to load and save the SVG contents to a file. Really thank you for that.
But now next step eludes me that how can I do some painting using mouse events (Even a simple line)..and again the contents of painting may be a line or something must be SVG again..!
Can anybody help please..??