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¶
Base classes¶
Constructor
Enums
Standard time zone options |
Methods
Returns the title for the time zone selector dialog window. |
|
Sets the title for the time zone selector dialog window. |
|
Sets the current time zone to select in the widget. |
|
Returns the selected time zone. |
Signals
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
parentwidget.- Parameters:
parent (QWidget|None = None)
- class StandardItem(*values)¶
Bases:
EnumStandard time zone options
Invalid: Invalid/not set optionCurrent: Current time zone valueSystem: 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
- Return type:
str
- setDialogTitle(self, title: str | None)[source]¶
Sets the
titlefor the time zone selector dialog window.See also
- Parameters:
title (str|None)
- setTimeZone(self, zone: QTimeZone)[source]¶
Sets the current time zone to select in the widget.
See also
- 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
- Return type:
QTimeZone