Results 1 to 2 of 2

Thread: QOpenGLWidget and text rendering

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2015
    Posts
    7
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default QOpenGLWidget and text rendering

    Hi,

    the problem is as follows: I need to render text on QOpenGLWidget. I was using QPainter to do so, but as I see, it lives by itself, e.g. resizeGL call does not affect QPainter rendered text position, also QPainter coordinates are different from defined in glOrtho. In QGLWidget there was a nice function renderText, obviously it is absent in QOpenGLWidget. Any other alternatives?

    Cheers.
    Last edited by Kozersky; 27th September 2015 at 11:54.

  2. #2
    Join Date
    Nov 2015
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Unhappy Re: QOpenGLWidget and text rendering

    look at http://stackoverflow.com/questions/3...516254#3516254

    but i can not find a way to fill text body. can any body tell me?

    thks.

Similar Threads

  1. Text Rendering Problems
    By ustulation in forum Qt Quick
    Replies: 0
    Last Post: 3rd June 2014, 23:14
  2. Text Edit rendering
    By VirtualRealty in forum Qt Programming
    Replies: 2
    Last Post: 1st October 2010, 18:16
  3. Text clipped when rendering svg.
    By ocratato in forum Newbie
    Replies: 1
    Last Post: 20th June 2010, 11:03
  4. 2D OpenGL text rendering with existing app
    By bytebucket in forum Newbie
    Replies: 7
    Last Post: 11th March 2010, 21:28
  5. text rendering problem
    By vno4697 in forum Qt Programming
    Replies: 0
    Last Post: 12th August 2008, 15:44

Tags for this Thread

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.