Add file to Project, not just to ProjectWidget.
Deserialize project from file in the project_widget example.
Serialize project to file when closing main window.