KLayout 0.29.1 (2024-05-13 48b32733c) [master]

API reference - Class QSystemLocale

Notation used in Ruby API documentation

Module: QtCore

Description: Binding of QSystemLocale

Class hierarchy: QSystemLocale

Sub-classes: QueryType, QFlags_QueryType

Public constructors

new QSystemLocalenewConstructor QSystemLocale::QSystemLocale()

Public methods

void_assign(const QSystemLocale other)Assigns another object to self
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]new QSystemLocale ptr_dupCreates a copy of self
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
voidassign(const QSystemLocale other)Assigns another object to self
[const]new QSystemLocale ptrdupCreates a copy of self
[const]QLocalefallbackLocaleVirtual method QLocale QSystemLocale::fallbackLocale()
[const]variantquery(const QSystemLocale_QueryType type,
variant in)
Virtual method QVariant QSystemLocale::query(QSystemLocale::QueryType type, QVariant in)

Public static methods and constants

[static,const]QSystemLocale_QueryTypeAMTextEnum constant QSystemLocale::AMText
[static,const]QSystemLocale_QueryTypeCountryIdEnum constant QSystemLocale::CountryId
[static,const]QSystemLocale_QueryTypeDateFormatLongEnum constant QSystemLocale::DateFormatLong
[static,const]QSystemLocale_QueryTypeDateFormatShortEnum constant QSystemLocale::DateFormatShort
[static,const]QSystemLocale_QueryTypeDateTimeFormatLongEnum constant QSystemLocale::DateTimeFormatLong
[static,const]QSystemLocale_QueryTypeDateTimeFormatShortEnum constant QSystemLocale::DateTimeFormatShort
[static,const]QSystemLocale_QueryTypeDateTimeToStringLongEnum constant QSystemLocale::DateTimeToStringLong
[static,const]QSystemLocale_QueryTypeDateTimeToStringShortEnum constant QSystemLocale::DateTimeToStringShort
[static,const]QSystemLocale_QueryTypeDateToStringLongEnum constant QSystemLocale::DateToStringLong
[static,const]QSystemLocale_QueryTypeDateToStringShortEnum constant QSystemLocale::DateToStringShort
[static,const]QSystemLocale_QueryTypeDayNameLongEnum constant QSystemLocale::DayNameLong
[static,const]QSystemLocale_QueryTypeDayNameShortEnum constant QSystemLocale::DayNameShort
[static,const]QSystemLocale_QueryTypeDecimalPointEnum constant QSystemLocale::DecimalPoint
[static,const]QSystemLocale_QueryTypeGroupSeparatorEnum constant QSystemLocale::GroupSeparator
[static,const]QSystemLocale_QueryTypeLanguageIdEnum constant QSystemLocale::LanguageId
[static,const]QSystemLocale_QueryTypeMeasurementSystemEnum constant QSystemLocale::MeasurementSystem
[static,const]QSystemLocale_QueryTypeMonthNameLongEnum constant QSystemLocale::MonthNameLong
[static,const]QSystemLocale_QueryTypeMonthNameShortEnum constant QSystemLocale::MonthNameShort
[static,const]QSystemLocale_QueryTypeNegativeSignEnum constant QSystemLocale::NegativeSign
[static,const]QSystemLocale_QueryTypePMTextEnum constant QSystemLocale::PMText
[static,const]QSystemLocale_QueryTypePositiveSignEnum constant QSystemLocale::PositiveSign
[static,const]QSystemLocale_QueryTypeTimeFormatLongEnum constant QSystemLocale::TimeFormatLong
[static,const]QSystemLocale_QueryTypeTimeFormatShortEnum constant QSystemLocale::TimeFormatShort
[static,const]QSystemLocale_QueryTypeTimeToStringLongEnum constant QSystemLocale::TimeToStringLong
[static,const]QSystemLocale_QueryTypeTimeToStringShortEnum constant QSystemLocale::TimeToStringShort
[static,const]QSystemLocale_QueryTypeZeroDigitEnum constant QSystemLocale::ZeroDigit

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]booldestroyed?Use of this method is deprecated. Use _destroyed? instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

AMText

Signature: [static,const] QSystemLocale_QueryType AMText

Description: Enum constant QSystemLocale::AMText

Python specific notes:
The object exposes a readable attribute 'AMText'. This is the getter.

CountryId

Signature: [static,const] QSystemLocale_QueryType CountryId

Description: Enum constant QSystemLocale::CountryId

Python specific notes:
The object exposes a readable attribute 'CountryId'. This is the getter.

DateFormatLong

Signature: [static,const] QSystemLocale_QueryType DateFormatLong

Description: Enum constant QSystemLocale::DateFormatLong

Python specific notes:
The object exposes a readable attribute 'DateFormatLong'. This is the getter.

DateFormatShort

Signature: [static,const] QSystemLocale_QueryType DateFormatShort

Description: Enum constant QSystemLocale::DateFormatShort

Python specific notes:
The object exposes a readable attribute 'DateFormatShort'. This is the getter.

DateTimeFormatLong

Signature: [static,const] QSystemLocale_QueryType DateTimeFormatLong

Description: Enum constant QSystemLocale::DateTimeFormatLong

Python specific notes:
The object exposes a readable attribute 'DateTimeFormatLong'. This is the getter.

DateTimeFormatShort

Signature: [static,const] QSystemLocale_QueryType DateTimeFormatShort

Description: Enum constant QSystemLocale::DateTimeFormatShort

Python specific notes:
The object exposes a readable attribute 'DateTimeFormatShort'. This is the getter.

DateTimeToStringLong

Signature: [static,const] QSystemLocale_QueryType DateTimeToStringLong

Description: Enum constant QSystemLocale::DateTimeToStringLong

Python specific notes:
The object exposes a readable attribute 'DateTimeToStringLong'. This is the getter.

DateTimeToStringShort

Signature: [static,const] QSystemLocale_QueryType DateTimeToStringShort

Description: Enum constant QSystemLocale::DateTimeToStringShort

Python specific notes:
The object exposes a readable attribute 'DateTimeToStringShort'. This is the getter.

DateToStringLong

Signature: [static,const] QSystemLocale_QueryType DateToStringLong

Description: Enum constant QSystemLocale::DateToStringLong

Python specific notes:
The object exposes a readable attribute 'DateToStringLong'. This is the getter.

DateToStringShort

Signature: [static,const] QSystemLocale_QueryType DateToStringShort

Description: Enum constant QSystemLocale::DateToStringShort

Python specific notes:
The object exposes a readable attribute 'DateToStringShort'. This is the getter.

DayNameLong

Signature: [static,const] QSystemLocale_QueryType DayNameLong

Description: Enum constant QSystemLocale::DayNameLong

Python specific notes:
The object exposes a readable attribute 'DayNameLong'. This is the getter.

DayNameShort

Signature: [static,const] QSystemLocale_QueryType DayNameShort

Description: Enum constant QSystemLocale::DayNameShort

Python specific notes:
The object exposes a readable attribute 'DayNameShort'. This is the getter.

DecimalPoint

Signature: [static,const] QSystemLocale_QueryType DecimalPoint

Description: Enum constant QSystemLocale::DecimalPoint

Python specific notes:
The object exposes a readable attribute 'DecimalPoint'. This is the getter.

GroupSeparator

Signature: [static,const] QSystemLocale_QueryType GroupSeparator

Description: Enum constant QSystemLocale::GroupSeparator

Python specific notes:
The object exposes a readable attribute 'GroupSeparator'. This is the getter.

LanguageId

Signature: [static,const] QSystemLocale_QueryType LanguageId

Description: Enum constant QSystemLocale::LanguageId

Python specific notes:
The object exposes a readable attribute 'LanguageId'. This is the getter.

MeasurementSystem

Signature: [static,const] QSystemLocale_QueryType MeasurementSystem

Description: Enum constant QSystemLocale::MeasurementSystem

Python specific notes:
The object exposes a readable attribute 'MeasurementSystem'. This is the getter.

MonthNameLong

Signature: [static,const] QSystemLocale_QueryType MonthNameLong

Description: Enum constant QSystemLocale::MonthNameLong

Python specific notes:
The object exposes a readable attribute 'MonthNameLong'. This is the getter.

MonthNameShort

Signature: [static,const] QSystemLocale_QueryType MonthNameShort

Description: Enum constant QSystemLocale::MonthNameShort

Python specific notes:
The object exposes a readable attribute 'MonthNameShort'. This is the getter.

NegativeSign

Signature: [static,const] QSystemLocale_QueryType NegativeSign

Description: Enum constant QSystemLocale::NegativeSign

Python specific notes:
The object exposes a readable attribute 'NegativeSign'. This is the getter.

PMText

Signature: [static,const] QSystemLocale_QueryType PMText

Description: Enum constant QSystemLocale::PMText

Python specific notes:
The object exposes a readable attribute 'PMText'. This is the getter.

PositiveSign

Signature: [static,const] QSystemLocale_QueryType PositiveSign

Description: Enum constant QSystemLocale::PositiveSign

Python specific notes:
The object exposes a readable attribute 'PositiveSign'. This is the getter.

TimeFormatLong

Signature: [static,const] QSystemLocale_QueryType TimeFormatLong

Description: Enum constant QSystemLocale::TimeFormatLong

Python specific notes:
The object exposes a readable attribute 'TimeFormatLong'. This is the getter.

TimeFormatShort

Signature: [static,const] QSystemLocale_QueryType TimeFormatShort

Description: Enum constant QSystemLocale::TimeFormatShort

Python specific notes:
The object exposes a readable attribute 'TimeFormatShort'. This is the getter.

TimeToStringLong

Signature: [static,const] QSystemLocale_QueryType TimeToStringLong

Description: Enum constant QSystemLocale::TimeToStringLong

Python specific notes:
The object exposes a readable attribute 'TimeToStringLong'. This is the getter.

TimeToStringShort

Signature: [static,const] QSystemLocale_QueryType TimeToStringShort

Description: Enum constant QSystemLocale::TimeToStringShort

Python specific notes:
The object exposes a readable attribute 'TimeToStringShort'. This is the getter.

ZeroDigit

Signature: [static,const] QSystemLocale_QueryType ZeroDigit

Description: Enum constant QSystemLocale::ZeroDigit

Python specific notes:
The object exposes a readable attribute 'ZeroDigit'. This is the getter.

_assign

Signature: void _assign (const QSystemLocale other)

Description: Assigns another object to self

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_dup

Signature: [const] new QSystemLocale ptr _dup

Description: Creates a copy of self

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

assign

Signature: void assign (const QSystemLocale other)

Description: Assigns another object to self

create

Signature: void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

destroy

Signature: void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

destroyed?

Signature: [const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

Use of this method is deprecated. Use _destroyed? instead

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

dup

Signature: [const] new QSystemLocale ptr dup

Description: Creates a copy of self

Python specific notes:
This method also implements '__copy__' and '__deepcopy__'.

fallbackLocale

Signature: [const] QLocale fallbackLocale

Description: Virtual method QLocale QSystemLocale::fallbackLocale()

This method can be reimplemented in a derived class.

is_const_object?

Signature: [const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

Use of this method is deprecated. Use _is_const_object? instead

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

new

Signature: [static] new QSystemLocale new

Description: Constructor QSystemLocale::QSystemLocale()

This method creates an object of class QSystemLocale.

Python specific notes:
This method is the default initializer of the object.

query

Signature: [const] variant query (const QSystemLocale_QueryType type, variant in)

Description: Virtual method QVariant QSystemLocale::query(QSystemLocale::QueryType type, QVariant in)

This method can be reimplemented in a derived class.