How to place a GraphicsView in a layout object
I need to create a scene and place it in a GraphicsView. Once I finish the scene and place it in the GraphicsView, how do I place the GraphicsView inside a layout object? My layout object is called vlayout and is an instance of QVBoxLayout. This is what I have so far (mostly from online examples):
Syntactically, everything is fine, but I can’t get my image to show up. This is what I have:
The QPushButton shows up fine in the layout, but not the view. Any idea what I am doing wrong?