yuzr
24th December 2007, 02:45
hello,everyone,My program is:
#include <QDebug>
int main()
{
qDebug()<<QString::number(3.14);
}
When I compile and run it on my KDE Desktop with qt 4.2.0ïit gives the
result:
"3.14"
However, when I cross compile and run it on my ARM board with
qtopia-core-opensource-4.2.2, it gives a completely wrong result:
"4.27698e+86"
i have added macro QT_QLOCALE_USES_FCVT when configure QT,but it doesn't work.
has someone solved the problem?can you show me your configure?
thanks!
#include <QDebug>
int main()
{
qDebug()<<QString::number(3.14);
}
When I compile and run it on my KDE Desktop with qt 4.2.0ïit gives the
result:
"3.14"
However, when I cross compile and run it on my ARM board with
qtopia-core-opensource-4.2.2, it gives a completely wrong result:
"4.27698e+86"
i have added macro QT_QLOCALE_USES_FCVT when configure QT,but it doesn't work.
has someone solved the problem?can you show me your configure?
thanks!