classPiiSpeedoMeter
#include <PiiSpeedoMeter.h>
A class provides a simple speedometer display.
Inherits QWidget
Description
Properties
|
double
|
Specify the alarm threshold. |
|
double
|
|
|
int
|
Set the maximum number of major and minor tick intervals. |
|
int
|
|
|
Set a measurement type (QString). |
|
|
double
|
Set min and max values. |
|
int
|
Set a precision of the scale numbers. |
|
double
|
Set start and stop angle. |
|
double
|
|
|
VisibilityFlags
|
The flags for the visibility. |
Public types
|
enum
|
{ ShowMeasurementType = 1, ShowValue = 2, ShowBorders = 4,
ShowScaleBrush = 8, ShowAlarmBrush = 16 }
Visibility flags. |
Public Slots
|
void
|
( )
|
Constructors and destructor
|
|
|
|
( )
|
Public member functions
|
( )
|
|
|
double
|
( )
|
|
( )
|
|
|
( )
|
|
|
double
|
( )
|
|
int
|
( )
|
|
int
|
( )
|
|
( )
|
|
|
( )
|
|
|
( )
|
|
|
double
|
( )
|
|
( )
|
|
|
( )
|
|
|
( )
|
|
|
( )
|
|
|
( )
|
|
|
( )
|
|
|
|
|
|
(
|
|
|
( )
|
|
|
( )
|
|
|
int
|
( )
|
|
void
|
|
|
void
|
(
|
|
void
|
|
|
void
|
|
|
void
|
(
|
|
void
|
(
|
|
void
|
(
|
|
void
|
|
|
void
|
|
|
void
|
|
|
void
|
(
|
|
void
|
|
|
void
|
|
|
void
|
|
|
void
|
|
|
void
|
|
|
void
|
|
|
void
|
|
|
void
|
|
|
void
|
(
|
|
void
|
(
|
|
void
|
(
|
|
void
|
|
|
void
|
|
|
void
|
(
|
|
double
|
( )
|
|
double
|
( )
|
|
( )
|
|
|
( )
|
|
|
VisibilityFlags
|
( )
|
Protected member functions
|
void
|
|
|
void
|
|
Property details
-
QBrush alarmBrush
[read, write] -
double alarmThreshold
[read, write]Specify the alarm threshold.
-
QBrush innerBorderBrush
[read, write] -
QPen innerBorderPen
[read, write] -
double max
[read, write] -
int maxMajorTicks
[read, write]Set the maximum number of major and minor tick intervals.
-
int maxMinorTicks
[read, write] -
QString measurementType
[read, write]Set a measurement type (QString).
-
QBrush meterBrush
[read, write] -
QPen meterPen
[read, write] -
double min
[read, write]Set min and max values.
-
QBrush nailBrush
[read, write] -
QPen nailPen
[read, write] -
QBrush needleBrush
[read, write] -
QPen needlePen
[read, write] -
QBrush outerBorderBrush
[read, write] -
QPen outerBorderPen
[read, write] -
QBrush scaleBrush
[read, write] -
QPen scalePen
[read, write] -
int scalePrecision
[read, write]Set a precision of the scale numbers.
-
double startAngle
[read, write]Set start and stop angle.
-
double stopAngle
[read, write] -
QBrush valueBrush
[read, write] -
QPen valuePen
[read, write] -
VisibilityFlags visibilityFlags
[read, write]The flags for the visibility.
In default all flags are in use.
Enumeration details
-
enum VisibilityFlag
Visibility flags.
-
ShowMeasurementType- draw the type -
ShowValue- draw the value -
ShowBorders- draw the inner and outer borders -
ShowScaleBrush- -
ShowAlarmBrush-
-
Function details
-
PiiSpeedoMeter
-
~PiiSpeedoMeter
() -
-
double alarmThreshold
()[inline] -
-
-
double max
()[inline] -
int maxMajorTicks
()[inline] -
int maxMinorTicks
()[inline] -
-
-
-
double min
()[inline] -
-
-
-
-
-
-
Q_DECLARE_FLAGS
-
Q_FLAGS
(- VisibilityFlags
-
-
-
int scalePrecision
()[inline] -
-
void setAlarmThreshold
(- double alarmThreshold
[inline] -
-
-
void setMax
(- double max
[inline] -
void setmaxMajorTicks
(- int maxMajorTicks
[inline] -
void setmaxMinorTicks
(- int maxMinorTicks
[inline] -
-
-
-
void setMin
(- double min
[inline] -
-
-
-
-
-
-
-
-
void setScalePrecision
(- int prec
[inline] -
void setStartAngle
(- double angle
[inline] -
void setStopAngle
(- double angle
[inline] -
-
-
void setVisibilityFlags
(- VisibilityFlags visibilityFlags
[inline] -
double startAngle
()[inline] -
double stopAngle
()[inline] -
-
-
VisibilityFlags visibilityFlags
()[inline] -
-
-
void setValue
()[slot]
Add a note
Not a single note added yet. Be the first, add yours.