Unsolved Help for QString formatting
-
Hi to all, i've need help for string formatting.
I'm writing some code to talk with SIM800C...and all works pretty well. But now i've need to send some sms to a list of people so i've need to change this fixed QString:QString comando= "at+cmgs=\"+3933345824\"\r";
to some that can works with a list of users. So for example
QString comando= "at+cmgs=\"myUsersList->at(myIntIndex)\"\r";
But i've got some errors i think for the escape sequence or for the " and other symbols that i'v need...i am not an expert about this.
Thanks a lot. -
-
@eyllanesc said in Help for QString formatting:
Thanks a lot.
I share the solution :QString comando= QString("at+cmgs=\"%1\"\r").arg(myList->at(myIndex));
I am not familiar with c++ thanks a lot !