TimezoneItem Class

The TimezoneItem class represents a time zone. More...

Header: #include <timezonemodel.h>
qmake: QT += timedatesettings
Inherits: QObject

Properties

  • country : const QString
  • id : const QString
  • name : const QString

Public Functions

TimezoneItem(const QByteArray &id, QObject *parent = Q_NULLPTR)
QString country() const
QString id() const
QString name() const

Detailed Description

Property Documentation

country : const QString

Holds the name of the country for the time zone.

Access functions:

QString country() const

See also QTimeZone::country().

id : const QString

Holds the IANA time zone ID.

Access functions:

QString id() const

See also QTimeZone::id() and IANA Time Zone IDs.

name : const QString

Holds the localized display name of the time zone.

Access functions:

QString name() const

See also QTimeZone::displayName().

Member Function Documentation

TimezoneItem::TimezoneItem(const QByteArray &id, QObject *parent = Q_NULLPTR)

Creates a time zone item with the IANA time zone ID id and parent parent.

QString TimezoneItem::country() const

Returns the name of the country for the time zone.

Note: Getter function for property country.

See also QTimeZone::country().

QString TimezoneItem::id() const

Returns the IANA time zone ID.

Note: Getter function for property id.

See also QTimeZone::id() and IANA Time Zone IDs.

QString TimezoneItem::name() const

Returns the localized display name of the time zone.

Note: Getter function for property name.

See also QTimeZone::displayName().

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.