cut 3.3.0
Loading...
Searching...
No Matches
qestopwatch.QeStopwatch Class Reference

The class creates stopwatch widget to measure time. More...

Public Member Functions

 handleStartStop (self)
 Invoked when Start/Stop button is clicked.
 
 start (self)
 Starts the stopwatch.
 
 stop (self)
 Stops the stopwatch.
 
 reset (self)
 Resets the stopwatch.
 
 elapsed (self)
 Accumulates time that's passed.
 
 getQtDesignerPluginInfo (cls)
 Provides Qt Designer with widget information.
 

Detailed Description

The class creates stopwatch widget to measure time.

Usage
Pressing 'Start/pause' button starts the stopwatch. Pressing the button again stops it. Pressing 'Reset' button stops the stopwatch and resets the display.

Member Function Documentation

◆ elapsed()

qestopwatch.QeStopwatch.elapsed ( self)

Accumulates time that's passed.

Returns
Number of ns that has passed since the stopwatch start

◆ getQtDesignerPluginInfo()

qestopwatch.QeStopwatch.getQtDesignerPluginInfo ( cls)

Provides Qt Designer with widget information.

Return: dict Dictionary with values for keys: icon, module, container, tool_tip and xml.

◆ handleStartStop()

qestopwatch.QeStopwatch.handleStartStop ( self)

Invoked when Start/Stop button is clicked.

Starts/stops the stopwatch depending on current state. Sets corresponding icon


The documentation for this class was generated from the following file: