app crashes when a qquickwidget is set into QGraphicsScene
-
A quickwidget is created with a qml file. For testing purpose, it has only a rectangle with an image. It is wrapped in a QWidget streamwidget with some settings for it. This streamwidget can be displayed in a layout of widgets without any problem. But the app crashes when the quickwidget is added to a QGraphicsScene
QGraphicsScene->setWidget( streamwidget ); ==> crash
Does anyone have the same problem? I will try a small test later.Qt: 5.15.2 and Ubuntu 18.04
-
@SGaist Thanks for your reply. I will try to wrap it in a OpenGL widget and add it to view port of QGraphicsView. Is this what you suggest?
I have a QGraphicsScene which has a bunch of items and it is set in QGraphicsView. Before, it was a graphics widget and no problem to add it to the scene. Now I replace it with qquickwidget and it can not be added to the scene anymore.
@JoeCFD no, not wrapping anything, setting the viewport. See the QGraphicsView details.
-
Hi,
Do you have the same issue if you use an OpenGL viewport for your view ?
-
@SGaist Thanks for your reply. I will try to wrap it in a OpenGL widget and add it to view port of QGraphicsView. Is this what you suggest?
I have a QGraphicsScene which has a bunch of items and it is set in QGraphicsView. Before, it was a graphics widget and no problem to add it to the scene. Now I replace it with qquickwidget and it can not be added to the scene anymore.
-
@SGaist Thanks for your reply. I will try to wrap it in a OpenGL widget and add it to view port of QGraphicsView. Is this what you suggest?
I have a QGraphicsScene which has a bunch of items and it is set in QGraphicsView. Before, it was a graphics widget and no problem to add it to the scene. Now I replace it with qquickwidget and it can not be added to the scene anymore.
@JoeCFD no, not wrapping anything, setting the viewport. See the QGraphicsView details.
-
@JoeCFD no, not wrapping anything, setting the viewport. See the QGraphicsView details.
-
@JoeCFD no, not wrapping anything, setting the viewport. See the QGraphicsView details.
-
J JoeCFD has marked this topic as solved on