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. Best way to build an OpenGL overlay over multiple QGLWidgets?
QtWS25 Last Chance

Best way to build an OpenGL overlay over multiple QGLWidgets?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.7k Views
  • 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
    kekse
    wrote on last edited by
    #1

    I am writing an application for use on a large multitouch table. The idea is to organize the screen in cells / tiles of individual QWidgets or QGLWidgets. I organized the widgets with nested QVBoxLayouts / QHBoxLayouts. That all works fine.

    !http://img197.imageshack.us/img197/7496/screen1z.png!

    The example picture shows the different screen areas where each of the colored regions could be a simple QWidget or a QGLWidget.
    My question know is how and if at all it is possible to have another OpenGL drawing area over the whole screen that overlays the individual areas?? I got it working just with QWidgets as explained here: "LINK":http://www.developer.nokia.com/Community/Wiki/Archived:How_to_overlay_QWidget_on_top_of_another. But as soon as I use a QGLWidget for either the overlay or the regions beneath it it doesn't work anymore.
    The overlay should e.g. be used to render debugging information such as the touch points but also for visual drag and drop between the areas.
    If there is no solution within QT how else would you accomplish this task?

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      ZapB
      wrote on last edited by
      #2

      Why use separate QGLWidgets at all? Why not use one big one and render your tiles by adjusting glViewport() for each section. Then you don't need any special treatment for your "overlay" at all, other than resetting glViewport() to the full window/screen size.

      Nokia Certified Qt Specialist
      Interested in hearing about Qt related work

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kekse
        wrote on last edited by
        #3

        Thx for your suggestion. Seems to be the only solution.

        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