Qt class for building variable arrays