QwtPlotItem
来源:互联网 发布:狸窝ppt转换器软件 编辑:程序博客网 时间:2024/05/20 13:09
1、CpuPieMarker ----------------->QwtPlotItem
setRenderHint( QwtPlotItem::RenderAntialiased, TRUE ); //抗锯齿
2、Background ---------------->QwtPlotItem
class Background: public QwtPlotItem
{
public:
Background()
{
setZ( 0.0 );
}
virtual int rtti() const
{
return QwtPlotItem::Rtti_PlotUserItem;
}
virtual void draw( QPainter *painter,
const QwtScaleMap &, const QwtScaleMap &yMap,
const QRectF &canvasRect ) const
{
QColor c( Qt::white );
QRectF r = canvasRect;
for ( int i = 110; i > 0; i -= 10 )
{
r.setBottom( yMap.transform( i - 10 ) );
r.setTop( yMap.transform( i ) );
painter->fillRect( r, c );
c = c.dark( 110 );
}
}
};
- QwtPlotItem
- QwtPlotItem解读---from Qwt-6.1.1
- Qwt源码解读之QwtPlotItem类(一)
- Qwt源码解读之QwtPlotItem类(二)
- Qwt源码解读之QwtPlotItem类(一)
- Qwt源码解读之QwtPlotItem类(二)
- 采用JNI方法利用opengl es 1.x在android上绘图
- c++面向对象编程必备“良方”
- 您的账户已被系统锁定,如有疑问请发邮件到:webmaster@csdn.net
- 经典字符串HASH函数
- 软件的生命周期概述
- QwtPlotItem
- sql语句
- expected unqualified-id before numeric constant
- WM算法详解
- wxWidgets和wxFormbuilder(参考)
- XSL文件
- CSS禅意花园---絮语 之基础
- 使用命令行方式编译wxWidgets:
- 系统程序员成长计划---读后感(一)通用双链表