Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Can I stop a QIcon antialiasing when rendering an SVG file?
kenchan last edited by
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.
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?