现在的位置: 首页 > 综合 > 正文

QwtScaleWidget

2013年10月14日 ⁄ 综合 ⁄ 共 924字 ⁄ 字号 评论关闭

QwtScaleWidget 该widget主要用途用来设置scale。(A Widget which contains a scale.)包含color bar,  scale , title。

与scale设置有关的类:

1、QwtScaleDraw:(A class for drawing scales. )  

QwtScaleDraw can be used to draw linear or logarithmic scales. A scale has a position, an alignment and a length,
which can be specified . The labels can be rotated and aligned to the ticks usingsetLabelRotation() andsetLabelAlignment().

After a scale division has been specified as a
QwtScaleDiv
object using
QwtAbstractScaleDraw::setScaleDiv(const QwtScaleDiv &s)
, the scale can be drawn with theQwtAbstractScaleDraw::draw()
member.

2、QwtScaleDiv :(A class representing a scale division. )

      A scale division consists of its limits and 3 list of tick values qualified as major, medium and minor ticks.

      In most cases scale divisions are calculated by a
QwtScaleEngine
.

QwtPlot中设置scale:

1、setAxisScaleDraw()用于画标尺上得刻度符号。
2、setAxisScale()设置刻度符号的最小端值,最大端值,以及最小分度的大小。
3、setAxisLabelRotation()  用于将标尺上刻度符号旋转。
4、setAxisLabelAlignment()用于控制刻度符号的放置位置。
QwtScaleWidget:
5、setMinBorderDist()

抱歉!评论已关闭.