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. QGraphicsView/Scene display "other" QOpenGLWidget?
Forum Updated to NodeBB v4.3 + New Features

QGraphicsView/Scene display "other" QOpenGLWidget?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 524 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.
  • D Offline
    D Offline
    Dariusz
    wrote on last edited by
    #1

    Hey

    Ok so this has been bothering me for a while now.

    2 cases

    1. QGraphicsView = as standard cpu mode
    2. QGraphicsVIew but with setViewport(new QOpenGLWidget())

    now what I would like is to have a QOpenGLWidget with 3d content inside a QGraphicsView. So that I can maybe have 2/3/4+ openGLViewports showing different stuff and me being able to click and drag them like QGraphicsItem/arrange/maybe even overlay? Then once clicked on the QOpenGLWidget itself with a key or modifier take control and emit signal to that QOpenGLWidget to update its content - camera/position etc etc.

    Now what I was thinking so far to do is to use a QGraphicsProxyWidget and just set the widget child to be that QOpenGLWidget... but I do wonder... is there a better way perhaps?

    Regards
    Dariusz
    TIA!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      From the looks of it, you might want consider using QtQuick.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Dariusz
        wrote on last edited by
        #3

        I looked few times in to QtQuick... not a big fan for the moment tbh. I ended up doing grabFramebuffer() call on the widget and passing it to QGraphicsPixmapItem... not very efficient I think. But for now it "works" still trying to figure out a better way.

        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