I have a custom QGraphicsView and a custom QGraphicsScene class. When I create a new custom view I pass in the custom scene to the constructor which calls setScene() on it. But later I am having problems when I call views() on my scene class and it is returning it as a QList I think I need to override the views() function but I'm not entirely sure what I would do differently inside of it.
Also I actually have two custom scene classes but I use the same view. I'm having trouble making two different constructors:
my_view(my_scene1 * scene, QWidget *parent =NULL);
my_view(my_scene2 * scene, QWidget *parent =NULL);
It causes many "incomplete type" errors across my other files that normally worked fine.