Results 1 to 3 of 3

Thread: QGLWidget renderText

  1. #1
    Join Date
    Jan 2006
    Location
    Third rock from the sun
    Posts
    106
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Red face QGLWidget renderText

    I am working with ToddAtWSU in creating a 2D plot using a QGLWidget. All drawing is being done with OpenGL commands and works very well. However, when using renderText( ) to place axis labels, the first number >= 0 always starts with a box. E.G. 1234 -> []234. We have tried putting in a "Hello" string, and it is always printed out as "[]ello". If a negative number is rendered, the "-" sign is displayed properly. EG "-1234" -> "-1234". Any other alphanumeric character is not displayed correctly, such as *1234->[]1234. This has happened since I installed Qt 4.1.4 using gcc3.4 on RedHat WS 4 u4.

    Thanks!!

    The [] represents a solid box.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QGLWidget renderText

    This looks like a bug --- either in Qt or Red Hat. Could you prepare a minimal compilable example that reproduces the problem?

  3. #3
    Join Date
    Jan 2006
    Location
    Third rock from the sun
    Posts
    106
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Talking [SOLVED] QGLWidget renderText

    I have solved the renderText issue, it was not a problem with Qt or Red Hat, it was with Nvidia! The latest Linux Nvidia drivers apparently have a problem with Qt's renderText. I dont know if this is an issue with the driver itself, or just how Qt handles the OpenGl calls. Anyway, I installed the legacy 7182 drivers from Nvida and the problem was fixed. Thanks to all who pondered this question!

Similar Threads

  1. about QGLWidget and QPainter
    By showhand in forum Qt Programming
    Replies: 5
    Last Post: 12th November 2008, 10:45
  2. QGLWidget renderText()
    By ToddAtWSU in forum Qt Programming
    Replies: 8
    Last Post: 21st July 2006, 13:20
  3. QGLWidget updateGL()
    By Lele in forum Qt Programming
    Replies: 7
    Last Post: 30th May 2006, 15:08
  4. Replies: 1
    Last Post: 8th May 2006, 07:07
  5. QGLWidget renderText problem
    By mbjerkne in forum Qt Programming
    Replies: 1
    Last Post: 7th April 2006, 21:35

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.