[Qt-interest] How to override qt_gl_draw_text?

Konstantin Tokarev annulen at yandex.ru
Thu Mar 11 14:30:10 CET 2010


Hello!
In my opensourse project I have class, inherited from QGLWidget. I'd like to modify behaviour of renderText() method to draw text with outlines. Exploring the sources of Qt, I've found that all I need is to override function qt_gl_draw_text (from qgl.cpp). I know that it would be better to override renderText itself, but it relays on many internal functions of qgl.cpp and I don't want to copy them all into my code
What is the proper way to "replace" qt_gl_draw_text?
-- 
Regards,
Konstantin



More information about the Qt-interest-old mailing list