{
Atmosphere::Atmosphere
{
a=new myCompass();
connect(myCompass, SIGNAL(valueChanged(double)), ...);
}
...
}
{
...
myCompass::myCompass( parent
) : QwtCompass(parent
) {
update();
}
// As in your replay, I've added:
virtual void YourCompass
::drawNeedle( QPainter *painter,
const QPoint &pos,
int radius, double direction,
...
}
}
class Atmosphere: public QWidget
{
Atmosphere::Atmosphere
{
a=new myCompass();
connect(myCompass, SIGNAL(valueChanged(double)), ...);
}
...
}
class myCompass::public QwtCompass
{
...
myCompass::myCompass( parent ) : QwtCompass(parent)
{
windNeedle = new QwtCompassWindArrow( Style1, red, black );
rose = new QwtSimpleCompassRose( 4, 1 );
update();
}
// As in your replay, I've added:
virtual void YourCompass::drawNeedle( QPainter *painter, const QPoint &pos,
int radius, double direction,
QPalette::ColorGroup colorGroup) const
...
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks