On Mon, July 6, 2009 10:28 pm, Gabriel M. Beddingfield wrote:
> 2. Adjust QLocale while reading/writing XML files. However,
> QLocale::setCurrent() is not considered thread-safe... and
> it may change the locale for the whole application while
> loading the XML file.
> PROS: Consistently uses QString methods.
> CONS: I don't think it will work.
6. Use QLocale::c() to do the conversions.
QString str("3.1415");
QLocale c_locale = QLocale::c();
double d = c_locale.toDouble(str);
PROS: Sticks with the QString methods... reduces
conversions.
CONS: ??
--
G a b r i e l M B e d d i n g f i e l d
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel