- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Converts between numbers and their string representations in various languages
Java wrapper for Qt class QLocale
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQLocale::Country
static enum
Java wrapper for Qt enumQLocale::CurrencySymbolFormat
static enum
Java wrapper for Qt enumQLocale::DataSizeFormat
static final class
QFlags
type for enumQLocale.DataSizeFormat
static enum
Java wrapper for Qt enumQLocale::FloatingPointPrecisionOption
static enum
Java wrapper for Qt enumQLocale::FormatType
static enum
Java wrapper for Qt enumQLocale::Language
static enum
Java wrapper for Qt enumQLocale::MeasurementSystem
static enum
Java wrapper for Qt enumQLocale::NumberOption
static final class
QFlags
type for enumQLocale.NumberOption
static enum
Java wrapper for Qt enumQLocale::QuotationStyle
static enum
Java wrapper for Qt enumQLocale::Script
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ConstructorDescriptionQLocale()
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) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
amText()
final void
final String
static QLocale
c()
SeeQLocale::
c() clone()
Creates and returns a copy of this object.final QLocale
static QList<QLocale.Country>
final QLocale.Country
country()
static String
countryToString
(QLocale.Country country) final String
createSeparatedList
(Collection<String> strl) final String
Overloaded function forcurrencySymbol(io.qt.core.QLocale.CurrencySymbolFormat)
witharg__1 = io.qt.core.QLocale.CurrencySymbolFormat.CurrencySymbol
.final String
final String
Overloaded function fordateFormat(io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
dateFormat
(QLocale.FormatType format) final String
Overloaded function fordateTimeFormat(io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
dateTimeFormat
(QLocale.FormatType format) final String
dayName
(int arg__1) Overloaded function fordayName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
dayName
(int arg__1, QLocale.FormatType format) final char
boolean
final char
final Qt.DayOfWeek
final String
formattedDataSize
(long bytes) Overloaded function forformattedDataSize(long, int, io.qt.core.QLocale.DataSizeFormats)
final String
formattedDataSize
(long bytes, int precision) Overloaded function forformattedDataSize(long, int, io.qt.core.QLocale.DataSizeFormats)
withformat = new io.qt.core.QLocale.DataSizeFormats(0)
.final String
formattedDataSize
(long bytes, int precision, QLocale.DataSizeFormat ... format) Overloaded function forformattedDataSize(long, int, io.qt.core.QLocale.DataSizeFormats)
.final String
formattedDataSize
(long bytes, int precision, QLocale.DataSizeFormats format) final char
int
hashCode()
Returns the objects's hash code computed byqHash(QLocale)
.final QLocale.Language
language()
static String
languageToString
(QLocale.Language language) matchingLocales
(QLocale.Language language, QLocale.Script script, QLocale.Country country) final String
monthName
(int arg__1) Overloaded function formonthName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
monthName
(int arg__1, QLocale.FormatType format) final String
name()
final String
final String
final char
final QLocale.NumberOptions
final char
percent()
final String
pmText()
final char
final String
quoteString
(String str) Overloaded function forquoteString(java.lang.String, io.qt.core.QLocale.QuotationStyle)
withstyle = io.qt.core.QLocale.QuotationStyle.StandardQuotation
.final String
quoteString
(String str, QLocale.QuotationStyle style) void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QLocale&) final QLocale.Script
script()
static String
scriptToString
(QLocale.Script script) static void
setDefault
(QLocale locale) final void
setNumberOptions
(QLocale.NumberOption ... options) Overloaded function forsetNumberOptions(io.qt.core.QLocale.NumberOptions)
.final void
setNumberOptions
(QLocale.NumberOptions options) final String
standaloneDayName
(int arg__1) Overloaded function forstandaloneDayName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
standaloneDayName
(int arg__1, QLocale.FormatType format) final String
standaloneMonthName
(int arg__1) Overloaded function forstandaloneMonthName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
standaloneMonthName
(int arg__1, QLocale.FormatType format) final void
static QLocale
system()
final Qt.LayoutDirection
final String
Overloaded function fortimeFormat(io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
timeFormat
(QLocale.FormatType format) final String
toCurrencyString
(double arg__1) Overloaded function fortoCurrencyString(double, java.lang.String)
withsymbol = (String)null
.final String
toCurrencyString
(double arg__1, String symbol) final String
toCurrencyString
(double arg__1, String symbol, int precision) final String
toCurrencyString
(float i) Overloaded function fortoCurrencyString(float, java.lang.String)
withsymbol = (String)null
.final String
toCurrencyString
(float i, String symbol) final String
toCurrencyString
(float i, String symbol, int precision) final String
toCurrencyString
(int arg__1) Overloaded function fortoCurrencyString(int, java.lang.String)
withsymbol = (String)null
.final String
toCurrencyString
(int arg__1, String symbol) final String
toCurrencyString
(long arg__1) Overloaded function fortoCurrencyString(long, java.lang.String)
withsymbol = (String)null
.final String
toCurrencyString
(long arg__1, String symbol) final String
toCurrencyString
(short arg__1) Overloaded function fortoCurrencyString(short, java.lang.String)
withsymbol = (String)null
.final String
toCurrencyString
(short arg__1, String symbol) final QDate
Overloaded function fortoDate(java.lang.String, io.qt.core.QLocale.FormatType)
witharg__2 = io.qt.core.QLocale.FormatType.LongFormat
.final QDate
toDate
(String string, QLocale.FormatType arg__2) final QDate
toDate
(String string, QLocale.FormatType format, QCalendar cal) final QDate
final QDate
final QDateTime
toDateTime
(String string) Overloaded function fortoDateTime(java.lang.String, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final QDateTime
toDateTime
(String string, QLocale.FormatType format) final QDateTime
toDateTime
(String string, QLocale.FormatType format, QCalendar cal) final QDateTime
toDateTime
(String string, String format) final QDateTime
toDateTime
(String string, String format, QCalendar cal) final double
final float
final int
final long
final String
final short
toString()
Seeoperator<<(QDebug,
QLocale) final String
toString
(double i) Overloaded function fortoString(double, byte, int)
final String
toString
(double i, byte f) Overloaded function fortoString(double, byte, int)
withprec = 6
.final String
toString
(double i, byte f, int prec) final String
toString
(float i) Overloaded function fortoString(float, byte, int)
final String
toString
(float i, byte f) Overloaded function fortoString(float, byte, int)
withprec = 6
.final String
toString
(float i, byte f, int prec) final String
toString
(int i) final String
toString
(long i) final String
toString
(short i) final String
Overloaded function fortoString(io.qt.core.QDate, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
toString
(QDate date, QLocale.FormatType format) final String
toString
(QDate date, QLocale.FormatType format, QCalendar cal) SeeQLocale::
toString(QDate, QLocale::FormatType, QCalendar)const final String
final String
SeeQLocale::
toString(QDate, QStringView, QCalendar)const final String
Overloaded function fortoString(io.qt.core.QDateTime, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
toString
(QDateTime dateTime, QLocale.FormatType format) final String
toString
(QDateTime dateTime, QLocale.FormatType format, QCalendar cal) SeeQLocale::
toString(QDateTime, QLocale::FormatType, QCalendar)const final String
final String
SeeQLocale::
toString(QDateTime, QStringView, QCalendar)const final String
Overloaded function fortoString(io.qt.core.QTime, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
toString
(QTime time, QLocale.FormatType format) final String
final QTime
Overloaded function fortoTime(java.lang.String, io.qt.core.QLocale.FormatType)
witharg__2 = io.qt.core.QLocale.FormatType.LongFormat
.final QTime
toTime
(String string, QLocale.FormatType arg__2) final QTime
toTime
(String string, QLocale.FormatType format, QCalendar cal) final QTime
final QTime
final String
final QStringList
final QList<Qt.DayOfWeek>
weekdays()
void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QLocale) final char
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QLocale
public QLocale() -
QLocale
Overloaded constructor for
QLocale(io.qt.core.QLocale.Language, io.qt.core.QLocale.Country)
withcountry = io.qt.core.QLocale.Country.AnyCountry
. -
QLocale
-
QLocale
-
QLocale
-
QLocale
-
-
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
See
operator<<(QDataStream&,
QLocale) -
assign
-
readFrom
See
operator>>(QDataStream&,
QLocale&) -
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 = (String)null
. -
toCurrencyString
-
toCurrencyString
-
toCurrencyString
Overloaded function for
toCurrencyString(float, java.lang.String)
withsymbol = (String)null
. -
toCurrencyString
-
toCurrencyString
-
toCurrencyString
Overloaded function for
toCurrencyString(int, java.lang.String)
withsymbol = (String)null
. -
toCurrencyString
-
toCurrencyString
Overloaded function for
toCurrencyString(long, java.lang.String)
withsymbol = (String)null
. -
toCurrencyString
-
toCurrencyString
Overloaded function for
toCurrencyString(short, java.lang.String)
withsymbol = (String)null
. -
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
See
QLocale::
toString(QDate, QLocale::FormatType, QCalendar)const -
toString
-
toString
See
QLocale::
toString(QDate, QStringView, QCalendar)const -
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) See
QLocale::
toString(QDateTime, QLocale::FormatType, QCalendar)const -
toString
-
toString
See
QLocale::
toString(QDateTime, QStringView, QCalendar)const -
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
-
toTime
-
toTime
-
toUpper
-
uiLanguages
-
weekdays
-
zeroDigit
-
c
See
QLocale::
c() -
countriesForLanguage
-
countryToString
-
languageToString
-
matchingLocales
public static QList<QLocale> matchingLocales(QLocale.Language language, QLocale.Script script, QLocale.Country country) -
scriptToString
-
setDefault
-
system
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QLocale)
. -
toString
See
operator<<(QDebug,
QLocale) -
clone
Creates and returns a copy of this object.
-