changed all the inheritance to qgraphicsobject