[Qt-jambi-interest] QGLwidget.renderText(...) hangs my app

moebius at altern.org moebius at altern.org
Tue Feb 26 18:44:42 CET 2008


Hi everybody,

I'm currently experimenting a quite strange problem.

I've subclassed a QGLWidget to make my own 3D viewer. I use JOGL as
rendering engine as described in HelloGL example. Everything goes fine
excepted for displaying some text into my 3D view.

The problematic code is :
glColor3f(1.0f, 1.0f, 1.0f);
renderText(0.0, 0.0, 1.0, new String("Z"), font);

The console error is :
QColor::setRgbF: RGB parameters out of range

Then my app hangs. Nothing is displayed and memory consumption is raising
until I kill the application.

font is initialized by :
QFont font = new QFont("Sans Serif", 10, QFont.Weight.Normal.value());
and works fine elsewhere. Anyway I don't think the problem is font related
but rather color related. So I tried several color setup using glColor
command as shown previously or even qglColor. Same result.

Is it a bug or did I miss something ?

Thanks for any help.

jMax

PS : I'm under Linux/X11 with ATI FireGL8800 graphic card and the xorg ati
driver...






More information about the Qt-jambi-interest mailing list