[Qt-interest] QT string templating

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Tue Feb 8 14:44:45 CET 2011


Hi All,

Is there any support for string templating in QT?

I came upon Grantlee (http://www.gitorious.org/grantlee/pages/Home),
but that seems to have a lot more features than my simple requirement.

For eg: if given a string "employee=<EMP_NAME>,
employee_num=<EMP_NUM>", I need a a way to specify that <EMP_NAME> and
<EMP_NUM> be replaced by certain values.

Is there a builtin way to replace the keywords in this template? (I
could use QRegExp and QString, but that would be a workaround).

Thanks,
-mandeep



More information about the Qt-interest-old mailing list