Class: QgsTimeZoneWidget

A widget for selection of available time zones.

The widget consists of a list of available time zones, along with a filter widget for searching through the available zones.

Added in version 4.4.

List of all members, including inherited members

Class Hierarchy

Inheritance diagram of qgis.gui.QgsTimeZoneWidget

Base classes

QgsPanelWidget

Base class for any widget that can be shown as an inline panel.

QWidget

QObject

QPaintDevice

Constructor

__init__

Methods

setTimeZone

Sets the current time zone to select in the widget.

timeZone

Returns the selected time zone.

Signals

timeZoneChanged

Emitted when the selected time zone is changed.

timeZoneDoubleClicked

Emitted when a time zone is double-clicked in the widget.

class qgis.gui.QgsTimeZoneWidget[source]

Bases: QgsPanelWidget

__init__(parent: QWidget | None = None)

Constructor for QgsTimeZoneWidget, with the specified parent widget.

Parameters:

parent (QWidget|None = None)

setTimeZone(self, zone: QTimeZone)[source]

Sets the current time zone to select in the widget.

See also

timeZone()

Parameters:

zone (QTimeZone)

timeZone(self) → QTimeZone[source]

Returns the selected time zone.

An invalid time zone will be returned if no item is selected.

See also

setTimeZone()

Return type:

QTimeZone

signal timeZoneChanged(zone: QTimeZone)[source]

Emitted when the selected time zone is changed.

See also

setTimeZone()

See also

timeZone()

Parameters:

zone (QTimeZone)

signal timeZoneDoubleClicked(zone: QTimeZone)[source]

Emitted when a time zone is double-clicked in the widget.

Parameters:

zone (QTimeZone)