A little project comes from Qt offical examples

1. Come from: Basic Drawing Example
2. Rect moves from left to right, when user click mouse, fly to up.