Have a look at the Diagrame Scene Example in QtDemo under GraphicsView section.

I guess thats something similar you are trying to achieve