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 Rendering Perspective Transform on QGraphicsView Viewport
Forum Update on Monday, May 27th 2025

Svg Rendering Perspective Transform on QGraphicsView Viewport

Scheduled Pinned Locked Moved Unsolved General and Desktop
svgqgraphicsviewtransformqsvgrendererqgraphicssvgite
2 Posts 2 Posters 511 Views
  • 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.
  • R Offline
    R Offline
    RobotMaker
    wrote on 22 Oct 2021, 16:32 last edited by
    #1

    Hi. I'm using Qt5, and am loading an svg as a QGraphicsSvgItem to be displayed in a QGraphicsView widget. The svg loads fine. However, whenever I set a transform on my viewport with a change in the view perspective (i.e. through m13, m23 and m33), the svg does not render on my changed view (simple scaling factors and translations are work fine). Also, this is not an issue if I use a pixmap in place of an svg (however, I really want to use svgs since the pixmaps get blurry when zooming in loads, which I need for my use case). I'd appreciate any input. Thanks

    1 Reply Last reply
    0
    • J Online
      J Online
      JoeCFD
      wrote on 22 Oct 2021, 16:53 last edited by JoeCFD
      #2

      @RobotMaker said in Svg Rendering Perspective Transform on QGraphicsView Viewport:

      Some code will be helpful. And how you update it?

      try to call this after your change to update it. I use it to toggle svg pics display.
      update(const QRectF &) ==>update( boundingRect() ); I assume you overrides boundingRect();

      1 Reply Last reply
      0

      2/2

      22 Oct 2021, 16:53

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved