Feature remove qt3 in diagrams

Remove some unnecessary include in diagrams file, and move out q3 requirement.