Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

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

    General and Desktop
    2
    3
    1881
    Loading More Posts
    • 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
      tonnot last edited by

      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 Reply Quote 0
      • A
        andre last edited by

        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 Reply Quote 0
        • T
          tonnot last edited by

          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 Reply Quote 0
          • First post
            Last post