grCanvas derived from QGLWidget.

Qt Code:
  1. void grCanvas::paintEvent(QPaintEvent* event)
  2. {
  3. QPainter ipainter(this);
  4. ipainter.begin(this);
  5. ipainter.setWindow(QRect(this->translate.X-iMargin,this->translate.Y-iMargin,zoom.X+2*iMargin,zoom.Y+2*iMargin));
  6.  
  7. //ipainter.setRenderHint(QPainter::SmoothPixmapTransform, true);
  8. ipainter.setRenderHint(QPainter::Antialiasing);
  9. CanvasDrawer->RefreshCanvas(this);
  10.  
  11. CanvasDrawer->RunOpenGL(&ipainter,ShowLens);
  12. if(ShowLens==TRUE)
  13. ipainter.drawImage(m_pos - QPointF(m_radius, m_radius), m_lens_image);
  14. }
To copy to clipboard, switch view to plain text mode 

the code to draw texts, edges, nodes are inside the function RunOpenGL(&ipainter,ShowLens)

the display is like this:

Why the QPainter::Antialiasing fail to act?

Looking for your advice.

Thanks a lot.