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. Selection in QOpenGLWidget
Qt 6.11 is out! See what's new in the release blog

Selection in QOpenGLWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 450 Views 1 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.
  • K Offline
    K Offline
    KirstenS
    wrote on last edited by A Former User
    #1

    I am trying to use Qt 5 and the QOpenGLWidget instead of QGLWidget from Qt 4 which is what I am familiar with. I have gotten most things to work in the QOpenGLWidget but I am unsure how to get process hits to work. That is, I want to double click on an object (e.g. a triangle in a mesh of triangles generated with glDrawArrays(GL_TRIANGLES, 0,numVerts )) and have it return the index of the triangle drawn. Is there anything with Qt 5 and QOpenGLWidget similar to this?

    Edit: Added code tags -- @Wieland

    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