[Interest] Text in QGLWidget looks awful

Bo Thorsen bo at fioniasoftware.dk
Thu Jun 14 09:23:43 CEST 2012


Den 14-06-2012 09:01, Johan RĂ¥de skrev:
> Hi,
>
> Text rendered with a QPainter in a QGLWidget looks awful.
> I have attached two screen shots, one with text rendered in a QWidget
> and one with text rendered in a QGLWidget.
> I have also attached the code (Python + PySide) used to render the text.
>
> How do I fix this?
> How do I get nice-looking text in a QGLWidget?

Looks like the GL widget isn't antialiased. Try setting the anti alias 
renderhint on the gl painter.

Bo Thorsen,
Fionia Software.

-- 

Expert Qt and C++ developer for hire
Contact me if you need expert Qt help
http://www.fioniasoftware.dk



More information about the Interest mailing list