Results 1 to 3 of 3

Thread: OpenGL text rendering not working!! Unable to resolve glProgramParameteri

  1. #1
    Join Date
    Aug 2013
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default OpenGL text rendering not working!! Unable to resolve glProgramParameteri

    Working with QGLWidget.

    After hours spent at looking for the reason, why QPainter can draw pixels, lines and polygons, but cannot draw text, i copied 1:1 the example project "Sample buffers", ran it, only to see that it is not working either.

    The issue applies to both QPainter painting on a QGLWidget and native OpenGL painting on a QGLWidget. Both can paint virtually anything without errors, but not text.
    In the example project, when I comment out
    Qt Code:
    1. //renderText(-0.35, 0.4, 0.0, "Multisampling enabled");
    2. //renderText(0.15, 0.4, 0.0, "Multisampling disabled");
    To copy to clipboard, switch view to plain text mode 
    it works nice and I can see the image which I should see, without the text, of course. And the program closes normal...

    But when these lines are not commented out, I see a empty, plain white window without any drawing. And when I close the program, it throws a segfault.

    When using functions for text drawing, I get on the debug console three times "getProcAddress: Unable to resolve 'glProgramParameteri' ". Both in the example and in my own program.

    Is this a hardware/driver issue or is something wrong with Qt?

  2. #2
    Join Date
    Oct 2013
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: OpenGL text rendering not working!! Unable to resolve glProgramParameteri

    I got the same question with you.What I confuse is it is OK in qt4, but come in qt5.

  3. #3
    Join Date
    Apr 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: OpenGL text rendering not working!! Unable to resolve glProgramParameteri

    I have the same issue. With Qt 4 void QGLWidget::renderText(double x, double y, double z, const QString & str, const QFont & font = QFont()) works fine, but not with Qt 5.
    Any advice?

Similar Threads

  1. OpenGL rendering of Qt widgets
    By Luc4 in forum Qt Programming
    Replies: 0
    Last Post: 31st July 2011, 23:35
  2. 2D OpenGL text rendering with existing app
    By bytebucket in forum Newbie
    Replies: 7
    Last Post: 11th March 2010, 21:28
  3. Replies: 0
    Last Post: 6th December 2009, 01:41
  4. Unable to resolve the IP address. ( Qt 3.)
    By joseph in forum Qt Programming
    Replies: 18
    Last Post: 5th July 2007, 13:02
  5. Replies: 2
    Last Post: 14th June 2007, 15:31

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.