qt_demoe/third/qwtdemo/examples/dials/speedo_meter.h

19 lines
352 B
C++

#include <qstring.h>
#include <qwt_dial.h>
class SpeedoMeter: public QwtDial
{
public:
SpeedoMeter( QWidget *parent = NULL );
void setLabel( const QString & );
QString label() const;
protected:
virtual void drawScaleContents( QPainter *painter,
const QPointF &center, double radius ) const;
private:
QString d_label;
};