Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.1.0 Beta 1, 5.9.6, 5.12
-
Mac 10.6 and newer, Windows 7 and Windows 8, Linux (Kubuntu 12.04, noveau)
-
-
5c379f3ff0471c51827577d047c93bab88ad44ce, c625d923853d01ad668dd3e8ebd55b7e5a6bcdb8 d96bbd999fbd31687e4998705300ccdb5c4bcac4 (qt/qtbase/5.12)
Description
renderText() worked in Qt4.8.2 but fails to draw the text in Qt5. The problem is clearly demonstrated by a simple modification of the hellogl example (see attachment). The relevant changes to the example are in ::paintGL() where a simple triangle is drawn with single digit text drawn at each vertex. When compiled against Qt4 the text is rendered as expected. When compiled against Qt5 the text is not visible. Note that it is possible to make the text visible in Qt5 by adding glDisable(GL_DEPTH_TEST) but that leads to errors in depth ordering of drawn objects.
Attachments
Issue Links
- is duplicated by
-
QTBUG-42838 depth test fails in renderText
-
- Closed
-
- relates to
-
QTBUG-80867 Text rendered using GLWidget::renderText() is rendered at the wrong depth
-
- Closed
-
For Gerrit Dashboard: QTBUG-31156 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
80730,2 | Resurrect QGLWidget::renderText() | stable | qt/qtbase | Status: MERGED | +2 | 0 |
283344,3 | Fix depth in renderText() | 5.14 | qt/qtbase | Status: MERGED | +2 | 0 |
283773,2 | Fix depth in renderText() | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |