Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Painting on SVG file..Using mouse Events..?
QtWS25 Last Chance

Painting on SVG file..Using mouse Events..?

Scheduled Pinned Locked Moved General and Desktop
8 Posts 3 Posters 3.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aniket
    wrote on last edited by
    #1

    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..??

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on last edited by
      #2

      You should use "QtSvg Module":http://qt-project.org/doc/qt-4.8/qtsvg.html. Please check the link to official documentation for details.

      http://anavi.org/

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Aniket
        wrote on last edited by
        #3

        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..?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on last edited by
          #4

          [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 .

          http://anavi.org/

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Aniket
            wrote on last edited by
            #5

            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]

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Aniket
              wrote on last edited by
              #6

              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..??

              1 Reply Last reply
              0
              • EddyE Offline
                EddyE Offline
                Eddy
                wrote on last edited by
                #7

                Please don't start new threads about the same issue.

                Qt Certified Specialist
                www.edalsolutions.be

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Aniket
                  wrote on last edited by
                  #8

                  Ohh.. sorry..!
                  I wasn't finding anyon to ans. so i did..!
                  Anyway you ppl are way too quicker than i thought of..:)

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved