PDA

View Full Version : No text antialiasing with OpenGL graphicsview



pherthyl
25th February 2009, 16:48
I've got an animated interface using QGraphicsView, and the performance isn't the greatest on my netbook (LG lifebook with Intel® GMA 950 ) so I enabled OpenGL as per the graphicsview docs (OpenGL widget as viewport).

Now it works much faster, but of course no antialiasing. I enabled sample buffers and now the graphics and boxes are antialiased, but not the text. I can't find any reference to this problem anywhere, so not sure if there's something else I need to do?

Can it be that for some reason the graphics card isn't supporting antialiased text in OpenGL?

wysota
25th February 2009, 20:51
I think the card has nothing to do with it, all the antialiasing is done within Qt. Did you enable the "high quality antialiasing" flag? Maybe it helps...

pherthyl
13th March 2009, 23:30
Thanks for the reply.
I haven't tried that flag, no. Not entirely sure how to enable it, since the text is all QGraphicsSimpleTextItems so I'm not actually painting it myself. Is there any way to set that on the whole scene or something?

wysota
13th March 2009, 23:47
QGraphicsView::setRenderHints()