Hi there,

I'm using QGLFrameBufferObject as a QPainterDevice like that ;

Qt Code:
  1. m_pen(QBrush(QColor(255,0,0,80)),10)
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. // QGLFramebufferObjectFormat format;
  2. // format.setAttachment(QGLFramebufferObject::CombinedDepthStencil);
  3. // format.setSamples(3);
  4. m_FBO = new QGLFramebufferObject(width(),height()/*, format*/);
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. QPainter painter(m_FBO);
  2. painter.setRenderHints(QPainter::HighQualityAntialiasing | QPainter::SmoothPixmapTransform | QPainter::TextAntialiasing);
  3. painter.setPen(m_pen);
  4. painter.drawLine(m_start,m_end);
To copy to clipboard, switch view to plain text mode 

If i use opaque colors everything is going well. and if i don't use opaque colors in m_pen like that m_pen(QBrush(QColor(255,0,0,80)),10) transparent colors drawing so weird as like attached image;

weirdo.png

is there any idea what is going wrong ? Thanks ...