QwtArrowButton,QwtSystemClock,QwtPlotPanner类参考---from Qwt-6.1.1
QwtArrowButton类参考:
QwtArrowButton是箭头按钮,继承自QPushButton.
公有成员函数:
• QwtArrowButton (int num, Qt::ArrowType, QWidget ∗parent=NULL)
• virtual ∼QwtArrowButton ()
• Qt::ArrowType arrowType () const; //返回箭头的方向
• int num () const; //返回箭头按钮的数量
• virtual QSize sizeHint () const; //返回箭头按钮的大小
• virtual QSize minimumSizeHint () const; //返回最小尺寸暗示
受保护的成员函数:
• virtual void paintEvent (QPaintEvent ∗event);
• virtual void drawButtonLabel (QPainter ∗p); //绘制按钮标签
• virtual void drawArrow (QPainter ∗, const QRect &, Qt::ArrowType) const; //绘制箭头
• virtual QRect labelRect () const; //返回标签矩形
• virtual QSize arrowSize (Qt::ArrowType, const QSize &boundingSize) const; //返回箭头大小
• virtual void keyPressEvent (QKeyEvent ∗);
QwtSystemClock类参考:
QwtSystemClock类提供了高分辨率的时钟函数
公有成员函数:
• QwtSystemClock ()
• virtual ∼QwtSystemClock ()
• bool isNull () const; //如果时钟从来没有开始过,返回true
• void start (); //启动时钟
• double restart (); //设置开始时间为当前时间
• double elapsed () const
//从上一次调用start()或restart()消逝的毫秒数
//查看 examples\oscilloscope\oscilloscope.pro
QwtPlotPanner类参考:
QwtPlotPanner类提供了基地画布的平移,继承关系:QWidget -> QwtPanner -> QwtPlotPanner
公有成员函数:
• QwtPlotPanner (QWidget ∗)
• virtual ∼QwtPlotPanner ()
• QWidget ∗ canvas (); //返回要平移的画布
• const QWidget ∗ canvas () const;
• QwtPlot ∗ plot (); //返回包含画布的基地
• const QwtPlot ∗ plot () const;
• void setAxisEnabled (int axis, bool on); //设置轴线是否可用
//可以通过此函数设置伴随平移更新轴线刻度,默认平移时所有的轴都会被更新刻度。
• bool isAxisEnabled (int axis) const; //判断轴线是否可用
受保护的槽:
• virtual void moveCanvas (int dx, int dy); //移动画布
受保护的成员函数:
• virtual QBitmap contentsMask () const; //返回一个作为位图的画布遮罩
• virtual QPixmap grab () const; //返回带有画布内容的位图