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 vs OpenVG APIs for 2d drawing in Qt
Forum Updated to NodeBB v4.3 + New Features

SVG vs OpenVG APIs for 2d drawing in Qt

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.3k 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.
  • Q Offline
    Q Offline
    qttester5
    wrote on last edited by
    #1

    I'm looking to start doing a lot of custom 2d graphics and I see Qt supports its own QPainter API, as well as the ability to render drawings in the SVG and OpenVG formats. I'm wondering if anyone can comment on the pros and cons of these 3 APIs for generating images from code. Other than the fact that QPainter is not a portable Api to other environments, what are the key considerations between these three?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Qt implements only SVGtiny specification, the module is unmaintained and has lots of known issues. I don't recommend using it for anything more complex than some simple icons. QtWebKit maintains a separate SVG painter that supports full SVG standard. It is harder to use, however, and draws in more severe dependencies (webkit).

      I don't know the state of OpenVG support.

      QPainter might not be available in other toolkits, but it's fully integrated, blazing fast and quite easy.

      Qt also supports HTML5 Canvas APIs in QtQuick module.

      And additionally, there is OpenGL-based SceneGraph, upon which QtQuick 2 is based.

      (Z(:^

      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