Hi!
This question has been brought up earlier on, but it has not been properly answered. How do I display two needles in a single QwtDial? Can anybody help me with this?
The only properties I am interested in is to be able to change the color and value of the two needles.
I made the QwtDial in Qt Designer, and this is how I make the single needle in QwtDial:
MainEngineRight->setRange(-1.0,1.,0.01);
MainEngineRight->setNeedle(needle);
QwtDialSimpleNeedle *needle = new QwtDialSimpleNeedle(QwtDialSimpleNeedle::Arrow, true, Qt::red, QColor(Qt::gray).light(130));
MainEngineRight->setRange(-1.0,1.,0.01);
MainEngineRight->setNeedle(needle);
To copy to clipboard, switch view to plain text mode
Best regards
Bookmarks