Hi, I'm using the renderText(x,y,z,...) function to label vertices in a 3D modeling program. To make the labels easier to see I want to render it on top of a rectangle or ellipse or some sort of background.

I successfully wrote my own renderMyText() function inside my subclass of QGLWidget. Now I have the potential to modify the rendering of the text how I want. However, I have not been able to get any of the drawEllipse, drawRoundedRectangle, etc. to draw filled. I will only draw outline. I have setPen(Qt::NoPen) and setBrush(Qt::blue) and also tried setBrush(Qt::SolidPattern). Nothing shows up. If don't set NoPen and I have the brush on then the pen outline is all broken up. If the brush is off, then the pen outline shows up normally as expected.

The only shape I have gotten to work is the normal drawRectangle. However, this gave ugly transparency aliasing around the text.

Please help! Thanks
-Stu