Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML: Export to SVG or PDF
Forum Updated to NodeBB v4.3 + New Features

QML: Export to SVG or PDF

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 3 Posters 819 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.
  • M Offline
    M Offline
    maxwell31
    wrote on last edited by maxwell31
    #1

    Hi,

    I am developing a plotting component (x vs y line or scatter plots). I use a QSGGeometryNode for the line and the labels are done in QML. Ideally it would be nice, if I can export them in vector graphics to pdf or svg (or maybe even wmf/emf). Does someone have an idea how this could be done?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      David Auer
      wrote on last edited by
      #2

      I realize this is old but there is not much about PDF/Vector export from QML to be found. Have you found any solution for this?
      (I'd like to export the whole QML scene as PDF/Vector but that is a different topic.)

      1 Reply Last reply
      0
      • fcarneyF Offline
        fcarneyF Offline
        fcarney
        wrote on last edited by fcarney
        #3

        You could draw things internally using PathSvg.
        Or parse the QML to produce an svg representation.
        Find a pdf export library, take a snapshot (image using Items snapshot thingy) and store as image in pdf.

        C++ is a perfectly valid school of magic.

        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