|
|
Hi,
Now the question is what happens with toInt() and toDouble(). According
to the documentation these functions are making use of the locale:
http://doc.trolltech.com/3.3/qstring.html#toInt
http://doc.trolltech.com/3.3/qstring.html#toDouble
Here is code where put two numbers into QTable first number, second formatted
with Local
table_x->setText( 1, 1, QString("%L1").arg(num1));
I'm not aware what %L1 is.
What is the value of num1 and num2? Also what is the value of
QString("%L1").arg(num1) and QString::number(num2)?
table_x->setText( 1, 2, QString::number(num2));
they are aligned differently :).
That's probably because they're different.
--
Dimitri
--
List archive and information: http://lists.trolltech.com/qt-interest/
|
|