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. Does Qt allows manipulation of SVG?

Does Qt allows manipulation of SVG?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.1k Views 1 Watching
  • 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.
  • S Offline
    S Offline
    SanLin
    wrote on last edited by
    #1

    Hi all,

    I would like to do manipulation to a static SVG image after loading it. Now I am able to load and display using QFile and QGraphicScene. But I could not figure out how to modify the image. I have looked into Qt SVG C++ Classes and found these.

    @
    QGraphicsSvgItem :QGraphicsItem that can be used to render the contents of SVG files
    QSvgGenerator: Paint device that is used to create SVG drawings
    QSvgRenderer: Used to draw the contents of SVG files onto paint devices
    QSvgWidget: Widget that is used to display the contents of Scalable Vector Graphics (SVG) files
    @
    But could not find a class that allows me to do manipulation to an existing SVG image. So may I know is it possible to do manipulation directly in Qt? If so can you give me some hints?

    Thanks a lot for reading my question!

    1 Reply Last reply
    0
    • E Offline
      E Offline
      emmanueliarussi
      wrote on last edited by
      #2

      Hey! Hi!
      I'm running through the same problem.
      Did you figure it out? Thanks a lot!

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        The classes from the QtSVG module only support the static feature of SVG 1.2 Tiny.

        If you want more control on your SVG data, you'll have to use the QtWebkit module like explained "here":http://blog.qt.digia.com/blog/2008/08/06/webkit-based-svg-rasterizer/

        Hope it helps

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        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