Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, December 2007
QGLWidget::renderText() broken in Qt 4.3.3 Windows?


Message 1 in thread

Seems to be broken. Draws a bitmap in about the shape the glyph should 
be, but the pixels are scrambled.

Anyone else seen this?

-- 
 [ signature omitted ] 

Message 2 in thread

Yes, this happens in our product also.  It started when we upgraded to
QT 4.3.2.  I thought is was our code, so I've been trying to fix it over
the last several weeks.



> -----Original Message-----
> From: Paul Miller [mailto:paul@xxxxxxxxxx] 
> Sent: Thursday, December 20, 2007 13:22
> To: QT Interest List
> Subject: QGLWidget::renderText() broken in Qt 4.3.3 Windows?
> 
> 
> Seems to be broken. Draws a bitmap in about the shape the 
> glyph should 
> be, but the pixels are scrambled.
> 
> Anyone else seen this?
> 
> -- 
> Paul Miller | paul@xxxxxxxxxx | www.fxtech.com | Got Tivo?
> 
> --
> To unsubscribe - send a mail to 
> qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the 
> subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
> 
> 

--
 [ signature omitted ] 

Message 3 in thread

 

Does you QGLWidget have a depth buffer and are depth tests enabled ? (see
renderText in Qt assistant)

Do you have more than one QGLWidget in your application? If so, then make
sure they use context sharing or else renderText might get terribly slow on
multicore or hyperthreading machines. This is an issue for which I will
submit a bugreport to Trolltech soon.

And debugging (deep) into renderText has resulted in the insight (which
should have been documented by Trolltech in my opinion, since it may be
binary compatible but still breaks existing code) that the new renderText
can not be put inside OpenGL display lists anymore. The old renderText that
used the simple approach of creating bitmaps using wglUseFontBitmaps could
be put into display lists. The new one seems to use textures and what is
more important for the display list issue: it uses vertex and texture coord
arrays which are client state and therefore cannot be put into display
lists. Maybe this is a thing that Trolltech might want to think about.

And I think I remember some threads here on the list that said something
about colors with an alpha component being a problem ?!

Hope this helps .... took me long enough to find it all out...


Mit freundlichen Grüßen
Dipl.-Inf. Univ. Simon Frischeisen

  _____  

Mane und Frischeisen GmbH, München
Amtsgericht München HRB 150833
Steuernummer  143/159/30317 - USt-IDNr. DE232665168
Geschäftsführer: Dipl.-Phys. Univ. Ingo Mane, Dipl.-Inf. Univ. Simon
Frischeisen

Pütrichstr. 8 - 81667 München
Telefon: +49-89-44449505 - Fax.: +49-89-44449506 
Internet: http://www.mane-frischeisen.de

-----Original Message-----
From: Jones, Torrin A (US SSA) [mailto:torrin.jones@xxxxxxxxxxxxxx] 
Sent: Friday, December 21, 2007 4:40 PM
To: QT Interest List
Subject: RE: QGLWidget::renderText() broken in Qt 4.3.3 Windows?

Yes, this happens in our product also.  It started when we upgraded to
QT 4.3.2.  I thought is was our code, so I've been trying to fix it over
the last several weeks.



> -----Original Message-----
> From: Paul Miller [mailto:paul@xxxxxxxxxx] 
> Sent: Thursday, December 20, 2007 13:22
> To: QT Interest List
> Subject: QGLWidget::renderText() broken in Qt 4.3.3 Windows?
> 
> 
> Seems to be broken. Draws a bitmap in about the shape the 
> glyph should 
> be, but the pixels are scrambled.
> 
> Anyone else seen this?
> 
> -- 
> Paul Miller | paul@xxxxxxxxxx | www.fxtech.com | Got Tivo?
> 
> --
> To unsubscribe - send a mail to 
> qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the 
> subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
> 
> 

--
 [ signature omitted ]