- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QLocale extends QtObject implements Cloneable
Converts between numbers and their string representations in various languages
Java wrapper for Qt class QLocale
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static QMetaObject
staticMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
Constructors Modifier Constructor Description QLocale()
QLocale(QLocale other)
QLocale(QLocale.Language language)
Overloaded constructor forQLocale(io.qt.core.QLocale.Language, io.qt.core.QLocale.Country)
withcountry = io.qt.core.QLocale.Country.AnyCountry
.QLocale(QLocale.Language language, QLocale.Country country)
QLocale(QLocale.Language language, QLocale.Script script, QLocale.Country country)
protected
QLocale(QtObject.QPrivateConstructor p)
Constructor for internal use only.QLocale(String name)
-
Method Summary
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
Method Details
-
amText
-
bcp47Name
-
collation
-
country
-
createSeparatedList
-
currencySymbol
Overloaded function for
currencySymbol(io.qt.core.QLocale.CurrencySymbolFormat)
witharg__1 = io.qt.core.QLocale.CurrencySymbolFormat.CurrencySymbol
. -
currencySymbol
-
dateFormat
Overloaded function for
dateFormat(io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
dateFormat
-
dateTimeFormat
Overloaded function for
dateTimeFormat(io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
dateTimeFormat
-
dayName
Overloaded function for
dayName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
dayName
-
decimalPoint
-
exponential
-
firstDayOfWeek
-
formattedDataSize
@QtUninvokable public final String formattedDataSize(long bytes, int precision, QLocale.DataSizeFormat... format)Overloaded function for
formattedDataSize(long, int, io.qt.core.QLocale.DataSizeFormats)
. -
formattedDataSize
Overloaded function for
formattedDataSize(long, int, io.qt.core.QLocale.DataSizeFormats)
withformat = new io.qt.core.QLocale.DataSizeFormats(0)
. -
formattedDataSize
Overloaded function for
formattedDataSize(long, int, io.qt.core.QLocale.DataSizeFormats)
with:
precision = 2
format = new io.qt.core.QLocale.DataSizeFormats(0)
-
formattedDataSize
@QtUninvokable public final String formattedDataSize(long bytes, int precision, QLocale.DataSizeFormats format) -
groupSeparator
-
language
-
measurementSystem
-
monthName
Overloaded function for
monthName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
monthName
-
name
-
nativeCountryName
-
nativeLanguageName
-
negativeSign
-
numberOptions
-
writeTo
-
readFrom
-
percent
-
pmText
-
positiveSign
-
quoteString
Overloaded function for
quoteString(java.lang.String, io.qt.core.QLocale.QuotationStyle)
withstyle = io.qt.core.QLocale.QuotationStyle.StandardQuotation
. -
quoteString
-
script
-
setNumberOptions
Overloaded function for
setNumberOptions(io.qt.core.QLocale.NumberOptions)
. -
setNumberOptions
-
standaloneDayName
Overloaded function for
standaloneDayName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
standaloneDayName
-
standaloneMonthName
Overloaded function for
standaloneMonthName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
standaloneMonthName
-
swap
-
textDirection
-
timeFormat
Overloaded function for
timeFormat(io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
timeFormat
-
toCurrencyString
Overloaded function for
toCurrencyString(double, java.lang.String)
withsymbol = ""
. -
toCurrencyString
-
toCurrencyString
-
toCurrencyString
Overloaded function for
toCurrencyString(float, java.lang.String)
withsymbol = ""
. -
toCurrencyString
-
toCurrencyString
-
toCurrencyString
Overloaded function for
toCurrencyString(int, java.lang.String)
withsymbol = ""
. -
toCurrencyString
-
toCurrencyString
Overloaded function for
toCurrencyString(long, java.lang.String)
withsymbol = ""
. -
toCurrencyString
-
toCurrencyString
Overloaded function for
toCurrencyString(short, java.lang.String)
withsymbol = ""
. -
toCurrencyString
-
toDate
Overloaded function for
toDate(java.lang.String, io.qt.core.QLocale.FormatType)
witharg__2 = io.qt.core.QLocale.FormatType.LongFormat
. -
toDate
-
toDate
-
toDate
-
toDate
-
toDateTime
Overloaded function for
toDateTime(java.lang.String, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
toDateTime
-
toDateTime
@QtUninvokable public final QDateTime toDateTime(String string, QLocale.FormatType format, QCalendar cal) -
toDateTime
-
toDateTime
-
toDouble
- Throws:
NumberFormatException
-
toFloat
- Throws:
NumberFormatException
-
toInt
- Throws:
NumberFormatException
-
toLong
- Throws:
NumberFormatException
-
toLower
-
toShort
- Throws:
NumberFormatException
-
toString
Overloaded function for
toString(io.qt.core.QDate, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
toString
-
toString
-
toString
-
toString
-
toString
Overloaded function for
toString(io.qt.core.QDateTime, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
toString
-
toString
@QtUninvokable public final String toString(QDateTime dateTime, QLocale.FormatType format, QCalendar cal) -
toString
-
toString
-
toString
Overloaded function for
toString(io.qt.core.QTime, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
toString
-
toString
-
toString
Overloaded function for
toString(double, byte, int)
withprec = 6
. -
toString
-
toString
-
toString
Overloaded function for
toString(float, byte, int)
withprec = 6
. -
toString
-
toString
-
toString
-
toString
-
toString
-
toTime
Overloaded function for
toTime(java.lang.String, io.qt.core.QLocale.FormatType)
witharg__2 = io.qt.core.QLocale.FormatType.LongFormat
. -
toTime
-
toTime
@Deprecated @QtUninvokable public final QTime toTime(String string, QLocale.FormatType format, QCalendar cal)Deprecated.Calendar is ignored when parsing times -
toTime
-
toTime
Deprecated.Calendar is ignored when parsing times -
toUpper
-
uiLanguages
-
weekdays
-
zeroDigit
-
c
See QLocale::c()
-
countriesForLanguage
-
countryToString
-
languageToString
-
matchingLocales
public static List<QLocale> matchingLocales(QLocale.Language language, QLocale.Script script, QLocale.Country country) -
scriptToString
-
setDefault
-
system
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
public int hashCode() -
toString
-
clone
-