Josiah Bryan wrote:
> Hello All -
> 
> Problem in the new Qt 4.6 RC 1 released today.
> 
> The attached small example illustrates the problem:
> 
> With a pen enabled and the graphics item's opacity() <1.0, the pen 
> appears to be rendered *after* the brush (see attached screenshot 
> 'prob1.png'), and appears to be rendered as a solid rectangle (e.g. the 
> rectangle drawn with the brush is rendered below a rectangle drawn with 
> the pen.) It should be noted that at 1.0 opacity, drawRect() renders 
> correctly.
> 
> However, if the drawRect() call is ran without any pen set, then the 
> rectangle renders fine. Additionally, with a regular viewport (no 
> setViewport(new QGLWidget()) call), the drawRect() method does not show 
> this problem. (See Attached screenshot 'prob2.png' - no pen enabled when 
> drawRect() called - thats the ONLY difference between the two screenshots.)
> 
> I'm running Fedora 8 on Linux2.6.23.9-85.fc8 #1 SMP.
> 
> Can anyone else replicate this problem or have any ideas how to fix it?
> 
> Thanks!
> -josiah

We can't reproduce this here, but you could try to add:

QGL::setPreferredPaintEngine(QPaintEngine::OpenGL);

before calling the QApplication constructor and see if that helps.
If it helps, it means there's a problem with the new GL 2 paint engine 
on your system. If you give us the details of the graphics card and GL 
driver you're using, it might help us reproduce and fix it.

Thanks,
--
Trond K.
_______________________________________________
Qt4-preview-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback

Reply via email to