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:

Qt Code:
  1. QwtDialSimpleNeedle *needle = new QwtDialSimpleNeedle(QwtDialSimpleNeedle::Arrow, true, Qt::red, QColor(Qt::gray).light(130));
  2. MainEngineRight->setRange(-1.0,1.,0.01);
  3. MainEngineRight->setNeedle(needle);
To copy to clipboard, switch view to plain text mode 


Best regards