Class: QgsTimeEdit¶
A QTimeEdit widget with the capability of setting/reading null date/times.
Warning
You should use the signal timeValueChanged of this subclass
rather than QDateTimeEdit.timeChanged. (If you consequently connect parent’s
timeChanged signal and call time()
afterwards there is no guarantee that
NULL values will be correctly handled).
See also
See also
Added in version 3.14.
Class Hierarchy¶
Base classes¶
A QDateTimeEdit with the capability of setting/reading null date/times. |
|
Methods
Sets the time for the widget and handles null times. |
Signals
Signal emitted whenever the time changes. |
- class qgis.gui.QgsTimeEdit[source]¶
Bases:
QgsDateTimeEdit
- __init__(parent: QWidget | None = None)
Constructor for QgsTimeEdit. The current time is used by default. The widget is allowing null by default. If allow null is disabled, you should check allowNull before getting values from the widget.
- Parameters:
parent (Optional[QWidget] = None)