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. How to add a QGLWidget into a QGraphicsView?
Qt 6.11 is out! See what's new in the release blog

How to add a QGLWidget into a QGraphicsView?

Scheduled Pinned Locked Moved General and Desktop
qglwidget qgrap
2 Posts 1 Posters 965 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.
  • S Offline
    S Offline
    ScottLiu
    wrote on last edited by
    #1

    Recently, I work on some widget with OpenGL, so I use some subclass of QGLWidget which work nicely on another application. When I add this widget to QGraphicsView, it turn nothing on it. With web site search result, I read the artical like this:

    http://forum.qt.io/topic/47178/qglwidget-to-qopenglwidget-only-background-no-objects-etc
    http://www.qtcentre.org/archive/index.php/t-20669.html

    and I do as those artical instruction, set QGLWidget as QGraphicsView's Viewport with function "setViewport", but no luck wtih me.

    Is there some step I missing or Windows didn't support this? or some error I didn't noticed?

    Is anybody know how to add QGLWidget into QGraphicsView and make it work properly? Any information will be thankful.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      ScottLiu
      wrote on last edited by
      #2

      Is new Qt version will make change about this?

      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