Visitor Design Pattern (Qt)