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. Svg to Qml or QGraphicsItem

Svg to Qml or QGraphicsItem

Scheduled Pinned Locked Moved General and Desktop
svgqml
5 Posts 2 Posters 2.1k Views 2 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.
  • J Offline
    J Offline
    John1
    wrote on last edited by John1
    #1

    Hello,

    I would like to know if I could transform a complexe svg into a QML object or multiple QGraphicsItem objects.

    In fact, I would like each item on my svg (text, circle, polygone...) to be accessible for the purpose of being able to modify (position, attribute sush as color, ...) each of these items.

    Thanks in advance,

    John

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

      Hi and welcome to devnet,

      Do you mean whether there's a module for parsing your SVG and create the components as needed ?

      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
      • J Offline
        J Offline
        John1
        wrote on last edited by
        #3

        Absolutely.

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

          I'm not aware of a ready made translator, the QtSVG module doesn't seem implement what you need (you can check here

          Maybe the QtQuick PathSVG can be a good start. The most complete SVG parser available currently is in the QtWebKit module (QtWebEngine maybe also but I can't say for sure)

          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
          • J Offline
            J Offline
            John1
            wrote on last edited by
            #5

            Thank you

            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