Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2013

    Applying antialiasing in QSvgRenderer


    I have a QImage and I draw an svg image onto. Here is my simplified code:

    Qt Code:
    Switch view

    void WP::DrawImage(QImage &mImage)
        QPainter *pPainter = new QPainter(&mImage);
        QSvgRenderer *svgImg = new QSvgRenderer(linkToSvgImage);
        QRect rct(0, 0, 500, 500);
        svgImg->render(pPainter, rct);
        pPainter->setRenderHints(QPainter::Antialiasing, true);
        delete svgImg;
        delete pPainter;
    However, the painted image is aliased and I want to have an anti-aliased image. I have tried setRenderHints() but didn’t help. Could anyone help me about how to implement it?

    I tried setRenderHints before render but no joy.

    I tried to paint onto QPixmap instead of QImage but also no joy.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Budapest, Hungary

    Re: Applying antialiasing in QSvgRenderer

    While I do not know if it should work, I would certainly try enabling antialiasing before the render operation.

Similar Threads

  1. Is it impossible to have both antialiasing and point attenuation?
    By MobileVisuals in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2009-10-27, 17:29
  2. SVG antialiasing artifacts on S40
    By michel.jansen in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2009-10-14, 11:09
  3. Drawing and antialiasing
    By mew1979 in forum Symbian
    Replies: 5
    Last Post: 2007-09-26, 12:13
  4. Antialiasing problems - Alpha support.
    By AKIRAx29 in forum Tools and SDK Feedback (Closed)
    Replies: 1
    Last Post: 2006-10-04, 23:52
  5. Problem with applying new profile
    By pcs2003 in forum Multimodecards
    Replies: 7
    Last Post: 2003-04-07, 08:33

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts