1 Attachment(s)
QGLFrameBufferObject as a QPainterDevice transparent pen problem
Hi there,
I'm using QGLFrameBufferObject as a QPainterDevice like that ;
Code:
// QGLFramebufferObjectFormat format;
// format.setAttachment(QGLFramebufferObject::CombinedDepthStencil);
// format.setSamples(3);
Code:
painter.
setRenderHints(QPainter::HighQualityAntialiasing |
QPainter::SmoothPixmapTransform |
QPainter::TextAntialiasing);
painter.setPen(m_pen);
painter.drawLine(m_start,m_end);
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;
Attachment 6592
is there any idea what is going wrong ? Thanks ...