Hey bro,
use this--->
int main(.....){
unsigned short int ab=5;
QString str=QString::number(ab);
}
and your short will convert to string.
Hey bro,
use this--->
int main(.....){
unsigned short int ab=5;
QString str=QString::number(ab);
}
and your short will convert to string.
Or, if the value in the unsigned short is supposed to be a wide character then:
might do what you want. However, since the question is vague at best it is hard to know what you want.Qt Code:
To copy to clipboard, switch view to plain text mode
I can't believe for a moment you actually have an array of one element.
Bookmarks