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;