QwtPlotPicker

QwtPlotPicker

分类: Qt 462人阅读 评论(0) 收藏 举报
QwtPlotPicker ------------- >QwtPicker

QwtPicker的核心有三个:
1、Tracker
2、StateMachine 3、RubberBand

简单来说tracker就是在鼠标光标处显示当前坐标。
rubberBand则与stateMachine有关了。 rubberBand有很多种:
Enumerator:
NoRubberBand 

No rubberband.

HLineRubberBand 

A horizontal line ( only for QwtPicker::PointSelection )

VLineRubberBand 

A vertical line ( only for QwtPicker::PointSelection )

CrossRubberBand 

A crosshair ( only for QwtPicker::PointSelection )

RectRubberBand 

A rectangle ( only for QwtPicker::RectSelection )

EllipseRubberBand 

An ellipse ( only for QwtPicker::RectSelection )

PolygonRubberBand 

A polygon ( only for QwtPicker::&PolygonSelection )

UserRubberBand 

Values >= UserRubberBand can be used to define additional rubber bands.


但是必须与下面的machine对应,

QwtPicker filters all enter, leave, mouse and keyboard events of a widget and translates them into an array of selected points.

The way how the points are collected depends on type of state machine that is connected to the picker. Qwt offers a couple of predefined state machines for selecting:

While these state machines cover the most common ways to collect points it is also possible to implement individual machines as well.

原文地址:http://cache.baiducontent.com/c?m=9d78d513d98004e94fece43c534b91711824c2386d8e87556b93d3169c3e1d070571e2c83a3f405a8e906b6776fe080ab6e736056b5466aac593c01086ac955c6ed96029235cc01a438d4eb29d1163927bce1bf4ab1cecbafb3595&p=882a9647d58a1fdd0daec7710f4f80&newp=c96cc916d9c11cff57ee967d490888231615d70e3cd0d51f22&user=baidu&fm=sc&query=QwtPlotPicker&qid=&p1=2

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值