How the QGraphicsView add QGLwidget and shows in Qmainwindow?
Unsolved
General and Desktop
-
I wan to show 2D graphic view Item and open scene graph in the QGraphicsView , I have tried some open source code ,and it works ,when I setviewport() and drawbackground() the 3D graphics can show well in QGraphicsScene. I wan to show this in mainwindow it not work , when I chande the QGraphicsScene.show() behind the mainwindow.show() it can works well ,but this is not I want .
-
Hi,
And how are you using that QGraphicsScene in your "mainwindow" ?
Note that in the code you show, there's no
mainwindow
object.