Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QOpenGLWidget text rendering
Forum Updated to NodeBB v4.3 + New Features

QOpenGLWidget text rendering

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 789 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rem-Kolomna
    wrote on last edited by
    #1

    I want to draw text labels on QOpenGLWidget. I tried to use QPainter for this task, but had no success - text looks ugly and non antialiased. It is also looks ugly in Qt OpenGL/2dpainting samples. However text rendering is significantly better in QML controls which also use OpenGL backend. Here http://blog.qt.io/blog/2011/07/15/text-rendering-in-the-qml-scene-graph/ I have found a technique that is used in QML. Is there a way to use that technique to draw text in my OpenGL scene rendering?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved