[Qt-interest] show the needle of the compass
Matthias Pospiech
matthias.pospiech at gmx.de
Mon May 4 20:40:42 CEST 2009
Stefanos Antaris schrieb:
> I tried to install the qwt libraries on my Mac and i didn't manage
> it.So i took the code of qwt and i put it into my qt application in
> order to use it.Ok.I found this function too.But i don't know which
> parameteres should i pass.Which painter,palette,etc.This is my problem.
It took a look into the code of the dials example and there all needles
are created using setNeedle
compass->setNeedle(new QwtDialSimpleNeedle(QwtDialSimpleNeedle::Ray,
false, Qt::white));
Looking into the docs of QwtDialSimpleNeedle
(http://qwt.sourceforge.net/class_qwt_dial_simple_needle.html) I find a
member function setWidth.
That is probably what you need.
Not tested though,
Matthias
More information about the Qt-interest-old
mailing list