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 as a vector source for printing.
Forum Updated to NodeBB v4.3 + New Features

Qml as a vector source for printing.

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 3.8k 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.
  • L Offline
    L Offline
    llamatron
    wrote on last edited by
    #1

    Hi All,

    I'm just wondering whether it's possible to either render a declarative item at a higher resolution, or even as vector elements.

    I've tried for example using a QPrinter to print a QDecalarativeView's scene, however while elements manually added to the scene such as text are rendered as vector art, declarative items are rasterized at screen resolution.

    Any ideas?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sergeev
      wrote on last edited by
      #2

      "Here":http://developer.qt.nokia.com/forums/viewthread/1181/ is kind of similar topic.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        llamatron
        wrote on last edited by
        #3

        Thanks sergeev, but that's unfortunately unrelated.

        I've been digging in the various qml element implementations and they're mostly using QPainter primitives, so it should be possible - but I'm guessing something in qml's declarative item hierarchy is perhaps caching to a bitmap thanks to optimizations.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mbrasser
          wrote on last edited by
          #4

          Hi,

          Ultimately almost all of the painting in the QML graphical elements is cached into pixmaps for performance reasons. This is done in the elements themselves (have a look at QDeclarativeRectangle::generateBorderedRect(), for example), so I can't think of an easy way to get around this without hacking all of the elements, or writing your own set of vector-based elements.

          Regards,
          Michael

          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