Can I stop a QIcon antialiasing when rendering an SVG file?

  • Hello,

    I am using svg files for icons and I load them directly into a QIcon and then pass them to a QToolButton as its Icon.

    Like this...
    QIcon bicon(filename);

    The SVG image is rendered with antialiasing and I would like have it not use antialiasing. How can I prevent it rendering with antialiasing?

    Do I need to implement the paintEvent() function and turn it off there or is there some other way?


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.