Home
·
All Classes
·
Modules
QLocale Class Reference
[
QtCore
module]
Types
enum
Country
{ AnyCountry, Afghanistan, Albania, Algeria, ..., LastCountry }
enum
FormatType
{ LongFormat, ShortFormat, NarrowFormat }
enum
Language
{ C, Abkhazian, Afan, Afar, ..., Shambala }
enum
MeasurementSystem
{ MetricSystem, ImperialSystem }
enum
NumberOption
{ OmitGroupSeparator, RejectGroupSeparator }
class
NumberOptions
Methods
__init__
(
self
)
__init__
(
self
, QString)
__init__
(
self
, Language, Country
country
= QLocale.AnyCountry)
__init__
(
self
, QLocale)
QString
amText
(
self
)
Country
country
(
self
)
QString
dateFormat
(
self
, FormatType
format
= QLocale.LongFormat)
QString
dateTimeFormat
(
self
, FormatType
format
= QLocale.LongFormat)
QString
dayName
(
self
, int, FormatType
format
= QLocale.LongFormat)
QChar
decimalPoint
(
self
)
QChar
exponential
(
self
)
QChar
groupSeparator
(
self
)
Language
language
(
self
)
MeasurementSystem
measurementSystem
(
self
)
QString
monthName
(
self
, int, FormatType
format
= QLocale.LongFormat)
QString
name
(
self
)
QChar
negativeSign
(
self
)
NumberOptions
numberOptions
(
self
)
QChar
percent
(
self
)
QString
pmText
(
self
)
QChar
positiveSign
(
self
)
setNumberOptions
(
self
, NumberOptions)
QString
standaloneDayName
(
self
, int, FormatType
format
= QLocale.LongFormat)
QString
standaloneMonthName
(
self
, int, FormatType
format
= QLocale.LongFormat)
Qt.LayoutDirection
textDirection
(
self
)
QString
timeFormat
(
self
, FormatType
format
= QLocale.LongFormat)
QDate
toDate
(
self
, QString, FormatType
format
= QLocale.LongFormat)
QDate
toDate
(
self
, QString, QString)
QDateTime
toDateTime
(
self
, QString, FormatType
format
= QLocale.LongFormat)
QDateTime
toDateTime
(
self
, QString, QString)
(float, bool
ok
)
toDouble
(
self
, QString)
(float, bool
ok
)
toFloat
(
self
, QString)
(int, bool
ok
)
toInt
(
self
, QString, int
base
= 0)
(int, bool
ok
)
toLongLong
(
self
, QString, int
base
= 0)
(int, bool
ok
)
toShort
(
self
, QString, int
base
= 0)
QString
toString
(
self
, int)
QString
toString
(
self
, float, str
format
= 'g', int
precision
= 6)
QString
toString
(
self
, int)
QString
toString
(
self
, int)
QString
toString
(
self
, QDateTime, QString)
QString
toString
(
self
, QDateTime, FormatType
format
= QLocale.LongFormat)
QString
toString
(
self
, QDate, QString)
QString
toString
(
self
, QDate, FormatType
format
= QLocale.LongFormat)
QString
toString
(
self
, QTime, QString)
QString
toString
(
self
, QTime, FormatType
format
= QLocale.LongFormat)
QTime
toTime
(
self
, QString, FormatType
format
= QLocale.LongFormat)
QTime
toTime
(
self
, QString, QString)
(int, bool
ok
)
toUInt
(
self
, QString, int
base
= 0)
(int, bool
ok
)
toULongLong
(
self
, QString, int
base
= 0)
(int, bool
ok
)
toUShort
(
self
, QString, int
base
= 0)
QChar
zeroDigit
(
self
)
Static Methods
QLocale
c
()
list-of-QLocale.Country
countriesForLanguage
(Language)
QString
countryToString
(Country)
QString
languageToString
(Language)
setDefault
(QLocale)
QLocale
system
()
Special Methods
bool
__eq__
(
self
, QLocale)
bool
__ne__
(
self
, QLocale)
Detailed Description
Type Documentation
QLocale.Country
QLocale.FormatType
QLocale.Language
QLocale.MeasurementSystem
QLocale.NumberOption
Method Documentation
QLocale.__init__ (
self
)
QLocale.__init__ (
self
, QString)
QLocale.__init__ (
self
,
Language
,
Country
country
= QLocale.AnyCountry)
QLocale.__init__ (
self
,
QLocale
)
QString QLocale.amText (
self
)
QLocale
QLocale.c ()
list-of-QLocale.Country QLocale.countriesForLanguage (
Language
)
Country
QLocale.country (
self
)
QString QLocale.countryToString (
Country
)
QString QLocale.dateFormat (
self
,
FormatType
format
= QLocale.LongFormat)
QString QLocale.dateTimeFormat (
self
,
FormatType
format
= QLocale.LongFormat)
QString QLocale.dayName (
self
, int,
FormatType
format
= QLocale.LongFormat)
QChar QLocale.decimalPoint (
self
)
QChar QLocale.exponential (
self
)
QChar QLocale.groupSeparator (
self
)
Language
QLocale.language (
self
)
QString QLocale.languageToString (
Language
)
MeasurementSystem
QLocale.measurementSystem (
self
)
QString QLocale.monthName (
self
, int,
FormatType
format
= QLocale.LongFormat)
QString QLocale.name (
self
)
QChar QLocale.negativeSign (
self
)
NumberOptions
QLocale.numberOptions (
self
)
QChar QLocale.percent (
self
)
QString QLocale.pmText (
self
)
QChar QLocale.positiveSign (
self
)
QLocale.setDefault (
QLocale
)
QLocale.setNumberOptions (
self
,
NumberOptions
)
QString QLocale.standaloneDayName (
self
, int,
FormatType
format
= QLocale.LongFormat)
QString QLocale.standaloneMonthName (
self
, int,
FormatType
format
= QLocale.LongFormat)
QLocale
QLocale.system ()
Qt.LayoutDirection
QLocale.textDirection (
self
)
QString QLocale.timeFormat (
self
,
FormatType
format
= QLocale.LongFormat)
QDate
QLocale.toDate (
self
, QString,
FormatType
format
= QLocale.LongFormat)
QDate
QLocale.toDate (
self
, QString, QString)
QDateTime
QLocale.toDateTime (
self
, QString,
FormatType
format
= QLocale.LongFormat)
QDateTime
QLocale.toDateTime (
self
, QString, QString)
(float, bool
ok
) QLocale.toDouble (
self
, QString)
(float, bool
ok
) QLocale.toFloat (
self
, QString)
(int, bool
ok
) QLocale.toInt (
self
, QString, int
base
= 0)
(int, bool
ok
) QLocale.toLongLong (
self
, QString, int
base
= 0)
(int, bool
ok
) QLocale.toShort (
self
, QString, int
base
= 0)
QString QLocale.toString (
self
, int)
QString QLocale.toString (
self
, float, str
format
= 'g', int
precision
= 6)
QString QLocale.toString (
self
, int)
QString QLocale.toString (
self
, int)
QString QLocale.toString (
self
,
QDateTime
, QString)
QString QLocale.toString (
self
,
QDateTime
,
FormatType
format
= QLocale.LongFormat)
QString QLocale.toString (
self
,
QDate
, QString)
QString QLocale.toString (
self
,
QDate
,
FormatType
format
= QLocale.LongFormat)
QString QLocale.toString (
self
,
QTime
, QString)
QString QLocale.toString (
self
,
QTime
,
FormatType
format
= QLocale.LongFormat)
QTime
QLocale.toTime (
self
, QString,
FormatType
format
= QLocale.LongFormat)
QTime
QLocale.toTime (
self
, QString, QString)
(int, bool
ok
) QLocale.toUInt (
self
, QString, int
base
= 0)
(int, bool
ok
) QLocale.toULongLong (
self
, QString, int
base
= 0)
(int, bool
ok
) QLocale.toUShort (
self
, QString, int
base
= 0)
QChar QLocale.zeroDigit (
self
)
bool QLocale.__eq__ (
self
,
QLocale
)
bool QLocale.__ne__ (
self
,
QLocale
)
PyQt 4.8 for X11
Copyright ©
Riverbank Computing Ltd
and
Nokia
2010
Qt 4.7.0