Ugly parser but correct and integrated to the Qt project