Scene should not be owned by MainWindow. A class digram created in draw.io