void CDial::fnSetFeatures()
{
setReadOnly(true);
setWrapping(false);
setStyleSheet("background: white; color: qradialgradient(cx: 0.3, cy: -0.4, fx: 0.3, fy: -0.4, radius: 1.35, stop: 0 #fff, stop: 1 #888);");
setTracking(true);
setRange(0, MAG_A_MAX);
setScaleArc(0, 220);
setScale(MAG_A_MAX/10, MAG_A_MAX/10, 100);
setOrigin(150);
setScaleTicks(0, 4, 8);
setMass(0.1);
oNeedle->setWidth(10);
setNeedle(oNeedle);
}
void CDial::fnSetFeatures()
{
setReadOnly(true);
setFrameShadow(QwtDial::Raised);
setWrapping(false);
setStyleSheet("background: white; color: qradialgradient(cx: 0.3, cy: -0.4, fx: 0.3, fy: -0.4, radius: 1.35, stop: 0 #fff, stop: 1 #888);");
setTracking(true);
setRange(0, MAG_A_MAX);
setScaleArc(0, 220);
setScale(MAG_A_MAX/10, MAG_A_MAX/10, 100);
setOrigin(150);
setScaleTicks(0, 4, 8);
setMass(0.1);
oNeedle = new QwtDialSimpleNeedle(QwtDialSimpleNeedle::Arrow, true, Qt::darkGray,
QColor(Qt::gray).light(130));
oNeedle->setWidth(10);
setNeedle(oNeedle);
}
To copy to clipboard, switch view to plain text mode
Bookmarks