[Interest] Text in QGLWidget looks awful
Johan Råde
johan.rade at gmail.com
Thu Jun 14 09:44:06 CEST 2012
On 6/14/2012 9:23 AM, Bo Thorsen wrote:
> 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.
>
Hi,
I tried both the Antialiasing and the TextAntialiasing render hints.
They make no difference.
I have attached the revised code and new screen shots.
The new screen shots have a white background;
that makes it even easier to see how bad the text in the QGLWidget is.
Cheers, Johan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QGLWidget.png
Type: image/png
Size: 5924 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120614/03c5af07/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QWidget.png
Type: image/png
Size: 8134 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120614/03c5af07/attachment-0001.png>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Test.py
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120614/03c5af07/attachment.ksh>
More information about the Interest
mailing list