Results 1 to 5 of 5

Thread: QSvgRenderer antialiasing

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Posts
    63
    Thanks
    12
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default QSvgRenderer antialiasing

    Hi,

    I'm trying to write an SVG out to a QPicture and antialias the image while doing so.
    Here's my code.

    However, when I render the QPicture (m_picture), it is aliased...as if the renderhints were ignored.
    Is this expected behavior, or am I doing something wrong?

    Qt Code:
    1. QSvgRenderer* m_renderer = getSvgResource(":/filesystem/file.svg");
    2. QPainter imagePainter(&m_picture);
    3. imagePainter.setRenderHints(QPainter::Antialiasing|QPainter::SmoothPixmapTransform, true);
    4. QSvgRenderer* m_renderer->render(&imagePainter, m_bounds);
    To copy to clipboard, switch view to plain text mode 
    Last edited by jonks; 13th August 2009 at 06:40. Reason: spelling error

Similar Threads

  1. No text antialiasing with OpenGL graphicsview
    By pherthyl in forum Qt Programming
    Replies: 3
    Last Post: 13th March 2009, 22:47
  2. QImage antialiasing
    By bunjee in forum Qt Programming
    Replies: 1
    Last Post: 5th June 2008, 19:37
  3. About QSvgRenderer
    By guher in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2007, 10:21
  4. QSvgRenderer fill rule always evenOdd with gradient
    By mr.costa in forum Qt Programming
    Replies: 0
    Last Post: 24th April 2007, 17:04
  5. Font not Antialiasing
    By ChasW in forum Qt Programming
    Replies: 6
    Last Post: 21st January 2007, 18:12

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
  •  
Qt is a trademark of The Qt Company.