using qt controls, getting now the templates from the server, indexing it before