QwtThermo(3) | Qwt User's Guide | QwtThermo(3) |
QwtThermo - The Thermometer Widget.
#include <qwt_thermo.h>
Inherits QwtAbstractScale.
enum ScalePosition { NoScale, LeadingScale,
TrailingScale }
enum OriginMode { OriginMinimum, OriginMaximum,
OriginCustom }
virtual void setValue (double)
QwtThermo (QWidget *parent=NULL)
virtual ~QwtThermo ()
Destructor. void setOrientation (Qt::Orientation)
Set the orientation. Qt::Orientation orientation () const
void setScalePosition (ScalePosition)
Change the position of the scale. ScalePosition scalePosition ()
const
void setSpacing (int)
Change the spacing between pipe and scale. int spacing () const
void setBorderWidth (int)
int borderWidth () const
void setOriginMode (OriginMode)
Change how the origin is determined. OriginMode originMode ()
const
void setOrigin (double)
Specifies the custom origin. double origin () const
void setFillBrush (const QBrush &)
Change the brush of the liquid. QBrush fillBrush () const
void setAlarmBrush (const QBrush &)
Specify the liquid brush above the alarm threshold. QBrush alarmBrush
() const
void setAlarmLevel (double)
double alarmLevel () const
void setAlarmEnabled (bool)
Enable or disable the alarm threshold. bool alarmEnabled () const
void setColorMap (QwtColorMap *)
Assign a color map for the fill color. QwtColorMap * colorMap ()
const QwtColorMap * colorMap () const
void setPipeWidth (int)
int pipeWidth () const
void setRangeFlags (QwtInterval::BorderFlags)
Exclude/Include min/max values. QwtInterval::BorderFlags
rangeFlags () const
double value () const
Return the value. virtual QSize sizeHint () const
virtual QSize minimumSizeHint () const
void setScaleDraw (QwtScaleDraw *)
Set a scale draw. const QwtScaleDraw * scaleDraw () const
virtual void drawLiquid (QPainter *, const QRect &)
const
virtual void scaleChange ()
Notify a scale change. virtual void paintEvent (QPaintEvent *)
virtual void resizeEvent (QResizeEvent *)
virtual void changeEvent (QEvent *)
QwtScaleDraw * scaleDraw ()
QRect pipeRect () const
QRect fillRect (const QRect &) const
Calculate the filled rectangle of the pipe. QRect alarmRect (const
QRect &) const
Calculate the alarm rectangle of the pipe.
The Thermometer Widget.
QwtThermo is a widget which displays a value in an interval. It supports:
The fill colors might be calculated from an optional color map If no color map has been assigned QwtThermo uses the following colors/brushes from the widget palette:
Origin mode. This property specifies where the beginning of the liquid is placed.
See also:
Enumerator
Position of the scale
See also:
Enumerator
Constructor
Parameters:
Returns:
See also:
Warning:
Returns:
Warning:
Returns:
See also:
Warning:
Calculate the alarm rectangle of the pipe.
Parameters:
Returns:
See also:
Returns:
See also:
Qt change event handler
Parameters:
Returns:
Warning:
Returns:
Warning:
Redraw the liquid in thermometer pipe.
Parameters:
Returns:
See also:
Calculate the filled rectangle of the pipe.
Parameters:
Returns:
See also:
Returns:
Warning:
See also:
Returns:
See also:
Returns:
See also:
Returns:
See also:
Paint event handler
Parameters:
Returns:
Returns:
See also:
Returns:
See also:
Resize event handler
Parameters:
Returns:
See also:
Returns:
See also:
Returns:
See also:
Specify the liquid brush above the alarm threshold. Changes the QPalette::Highlight brush of the palette.
Parameters:
See also:
Warning:
Enable or disable the alarm threshold.
Parameters:
Warning:
Specify the alarm threshold.
Parameters:
See also:
Warning:
Set the border width of the pipe.
Parameters:
See also:
Assign a color map for the fill color.
Parameters:
Warning:
Change the brush of the liquid. Changes the QPalette::ButtonText brush of the palette.
Parameters:
See also:
Set the orientation.
Parameters:
See also:
Specifies the custom origin. If originMode is set to OriginCustom this property controls where the liquid starts.
Parameters:
See also:
Change how the origin is determined.
See also:
Change the width of the pipe.
Parameters:
See also:
Exclude/Include min/max values. According to the flags minValue() and maxValue() are included/excluded from the pipe. In case of an excluded value the corresponding tick is painted 1 pixel off of the pipeRect().
F.e. when a minimum of 0.0 has to be displayed as an empty pipe the minValue() needs to be excluded.
Parameters:
See also:
Set a scale draw. For changing the labels of the scales, it is necessary to derive from QwtScaleDraw and overload QwtScaleDraw::label().
Parameters:
Change the position of the scale.
Parameters:
See also:
Change the spacing between pipe and scale. A spacing of 0 means, that the backbone of the scale is below the pipe.
The default setting is 3 pixels.
Parameters:
See also:
Set the current value.
Parameters:
See also:
Returns:
See also:
Returns:
See also:
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Wed Jan 2 2019 | Version 6.1.4 |