char s[100];char* str = "C://xxx";int data = 10;sprintf(s, "val1 is %s val2 is %d.", str, data);
QString imgpath = path.tostring();