I'm not sure I get what you mean, will this class be the common parent for all map items classes? Where are you using this? You have to implement the int type() const function on all custom qgraphicsitem classes.