Qt5 port of grantlee from http://www.gitorious.org/grantlee/grantlee/