QwtScaleWidget
A Widget which contains a scale.
- Provided by: libqwt-doc (Version: 6.0.0-1.2)
- Source: qwt
- Report a bug
A Widget which contains a scale.
#include <qwt_scale_widget.h>
enum LayoutFlag { TitleInverted = 1 }
typedef QFlags< LayoutFlag > LayoutFlags
void scaleDivChanged ()
QwtScaleWidget (QWidget *parent=NULL)
QwtScaleWidget (QwtScaleDraw::Alignment, QWidget *parent=NULL)
virtual ~QwtScaleWidget ()
void setTitle (const QString &title)
void setTitle (const QwtText &title)
QwtText title () const
void setLayoutFlag (LayoutFlag, bool on)
bool testLayoutFlag (LayoutFlag) const
void setBorderDist (int start, int end)
int startBorderDist () const
int endBorderDist () const
void getBorderDistHint (int &start, int &end) const
void getMinBorderDist (int &start, int &end) const
void setMinBorderDist (int start, int end)
void setMargin (int)
int margin () const
void setSpacing (int td)
int spacing () const
void setScaleDiv (QwtScaleTransformation *, const
QwtScaleDiv &sd)
void setScaleDraw (QwtScaleDraw *)
const QwtScaleDraw * scaleDraw () const
QwtScaleDraw * scaleDraw ()
void setLabelAlignment (Qt::Alignment)
void setLabelRotation (double rotation)
void setColorBarEnabled (bool)
bool isColorBarEnabled () const
void setColorBarWidth (int)
int colorBarWidth () const
void setColorMap (const QwtInterval &, QwtColorMap *)
QwtInterval colorBarInterval () const
const QwtColorMap * colorMap () const
virtual QSize sizeHint () const
virtual QSize minimumSizeHint () const
int titleHeightForWidth (int width) const
int dimForLength (int length, const QFont &scaleFont) const
void drawColorBar (QPainter *painter, const QRectF &) const
void drawTitle (QPainter *painter, QwtScaleDraw::Alignment,
const QRectF &rect) const
void setAlignment (QwtScaleDraw::Alignment)
QwtScaleDraw::Alignment alignment () const
QRectF colorBarRect (const QRectF &) const
virtual void paintEvent (QPaintEvent *)
virtual void resizeEvent (QResizeEvent *)
void draw (QPainter *p) const
void scaleChange ()
void layoutScale (bool update=true)
A Widget which contains a scale.
This Widget can be used to decorate composite widgets with a scale.
Layout flags of the title.
Layout flags of the title.
Enumerator:
Create a scale with the position QwtScaleWidget::Left. Parameters:
Constructor. Parameters:
Destructor.
See also:
See also:
Parameters:
Returns:
See also:
See also:
Find the minimum dimension for a given length. dim is the height, length the width seen in direction of the title. Parameters:
Returns:
draw the scale
Parameters:
See also:
Parameters:
See also:
Calculate a hint for the border distances. This member function calculates the distance of the scale's endpoints from the widget borders which is required for the mark labels to fit into the widget. The maximum of this distance an the minimum border distance is returned.
Warning:
See also:
See also:
See also:
Parameters:
See also:
paintEvent
Parameters:
Notify a change of the scale. This virtual function can be overloaded by derived classes. The default implementation updates the geometry and repaints the widget.
Signal emitted, whenever the scale divison changes.
See also:
See also:
Parameters:
See also:
Parameters:
See also:
See also:
Parameters:
See also:
Parameters:
See also:
Change the alignment for the labels. See also:
Change the rotation for the labels. See QwtScaleDraw::setLabelRotation(). Parameters:
See also:
Parameters:
See also:
Specify the margin to the colorBar/base line. Parameters:
See also:
Parameters:
See also:
Assign a scale division. The scale division determines where to set the tick marks.
Parameters:
See also:
Parameters:
See also:
Specify the distance between color bar, scale and title. Parameters:
See also:
Parameters:
See also:
Parameters:
See also:
Warning:
See also:
See also:
Parameters:
Returns:
See also:
See also:
Find the height of the title for a given width. Parameters:
Returns:
Generated automatically by Doxygen for Qwt User's Guide from the source code.