Hi, Do you know Whether I can put image for qwt dial.Because I use qwt needle but I want to an image to dial for number screen of dial.
Printable View
Hi, Do you know Whether I can put image for qwt dial.Because I use qwt needle but I want to an image to dial for number screen of dial.
Overload one of the draw methods of QwtDial (drawContents, drawScaleContents ... ) and scale/draw your image there.
Uwe
I wanted to paint the background of my QwtDial, but nothing happens when I follow Uwe's suggestion. Here is the code in my function:
Any help would be appreciated.Code:
{ #if QT_VERSION < 0x040000 colorGroup().text(); #else #endif painter->setPen(color); const int flags = Qt::AlignBottom | Qt::AlignHCenter; painter->drawText(rect, flags, d_label); painter->setBrush(gradient); painter->setBackground(brush); painter->setBackgroundMode(Qt::OpaqueMode); }
// Sal