PDA

View Full Version : Converting short to QString



saad_saadi
11th February 2014, 03:47
Hello All,

I want to put a short value to LineEdit. B ut LineEdit only takes QString. Can anyone please tell me how i can do this.


LineEdit->setText(short_value);

it will be of great help. I tried
QString::fromUtf16 but the value is random signs.

Just ignore the question. I found the answer.

Lesiok
11th February 2014, 06:46
RTFM (Read This Fine Manual) : QString::number