Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

What anti-aliasing algorithm does QPainter take to draw a Polygon?



  • I am trying to imitate the QPainter way to do anti-aliasing , and when I draw a circle ,and it's edge was like this.
    QPainter( using drawPolygon with anti-aliasing ):
    0_1516011464247_perfect.PNG
    My Gaussian:
    0_1516011486429_gaussian.PNG
    My bilateral (after Gaussian):
    0_1516011519761_BilateralFilter.PNG

    So I still cant get a Qt's style anti-aliasing ,can anybody tell what algorithm does QPainter take to do Anti-aliasing?


Log in to reply