Class: QgsTimeZoneComboBox

A combo box 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.QgsTimeZoneComboBox

Base classes

QWidget

QObject

QPaintDevice

Constructor

__init__

Enums

StandardItem

Standard time zone options

Methods

StandardItems

dialogTitle

Returns the title for the time zone selector dialog window.

setDialogTitle

Sets the title for the time zone selector dialog window.

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.

class qgis.gui.QgsTimeZoneComboBox[source]

Bases: QWidget

__init__(parent: QWidget | None = None)

Constructor for QgsTimeZoneComboBox, with the specified parent widget.

Parameters:

parent (QWidget|None = None)

class StandardItem(*values)

Bases: Enum

Standard time zone options

  • Invalid: Invalid/not set option

  • Current: Current time zone value

  • System: System time zone

Current = 2
Invalid = 1
System = 4
StandardItems()
dialogTitle(self) → str[source]

Returns the title for the time zone selector dialog window.

See also

setDialogTitle()

Return type:

str

setDialogTitle(self, title: str | None)[source]

Sets the title for the time zone selector dialog window.

See also

dialogTitle()

Parameters:

title (str|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)