example for qsharedpointers and qobjects