Results 1 to 2 of 2

Thread: About QSvgRenderer

  1. #1
    Join Date
    Nov 2007
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default About QSvgRenderer

    Hi,
    in my application I try to draw a svg in a qgraphicsitem via qsvgrenderer::render ( QPainter * painter, const QRectF & bounds ). While for some svg files, this function draws the svg correctly in the bounds dictated by this function, for some svg files, especially svg files containing viewbox attributes, this function draws the svg file on to some rectangle which is larger than the bounds rectangle specified in this function. I can provide such a svg file upon request. Has anyone come across this behavior before?

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: About QSvgRenderer

    Does the same happen if you use QGraphicsSvgItem?

Similar Threads

  1. QSvgRenderer fill rule always evenOdd with gradient
    By mr.costa in forum Qt Programming
    Replies: 0
    Last Post: 24th April 2007, 18:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.