I have this little piece of code:
Qint32 value
Value = price * qty;
Qstring str;
Ui->lin->text(str.number(value));
But when I build it gives me the wrong values. The variables price and qty represent values from the database which I want to display in the results inside a qlineedit box.