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. QgraphicsScene & openGL, which can be the best approach to mix both ?

QgraphicsScene & openGL, which can be the best approach to mix both ?

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.0k 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.
  • T Offline
    T Offline
    tonnot
    wrote on last edited by
    #1

    I'm going to start my vectorial viewer app develop.
    I have explored the 2D and 3D QT tools and I have the impression that I have to create two independents data worlds.
    The Qgrapchicsscene needs 'items', the opengl needs raw data ....
    What is your opinion ? QML 3D ¿

    QT5 can be offer my a best way to do this ?
    Thanks

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      There are examples available on how to mix them. A bit of googling will bring them on your screen. From the top of my head, they use a QGLWidget as the viewport widget for a QGraphicsView, and then leverage QGraphicsView::drawBackground or ::drawForeground to render GL stuff into that viewport while layering the graphics items on top.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tonnot
        wrote on last edited by
        #3

        Thanks.
        But you are agree with me that I cant do a 3D render using the items of GraphicsScene , ins't ?
        And what about QML3D?

        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