Put exceptions in right place
Add adefault background color
Clean the code and remove call to widget in Qt killing the event loop
Add the management of the events for manipulating the scene