I need to compose a string like:
<page myIndex = "1">
where 1 is the value of a variable stored in memory.
My fist try:
QString str = "<page pageIndex = " + myVar + ">";
But it does not contain the ' " ' around the myVar value. I've tried with ' only, like this:
QString str = "<page pageIndex = " + '"' + myVar + '"' + ">";
but it gives compile error.