In your QGraphicsView
Qt Code:
  1. setRenderHints( QPainter::Antialiasing | QPainter::SmoothPixmapTransform );
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. new QGLWidget( QGLFormat( QGL::SampleBuffers | QGL::AlphaChannel | QGL::Rgba ) );
  2.  
  3. QGLFormat frm = wgt->format();
  4. frm.setSamples(4);
To copy to clipboard, switch view to plain text mode