hello,
I'm wondering how I should setup a QLinearGradient to fill the liquid in a QwtThermo widget.
For example:
g.setColorAt(0, Qt::red);
g.setColorAt(0, Qt::yellow);
myThermo
->setFillBrush
(QBrush(g
));
QwtThermo *myThermo;
myThermo = new QwtThermo();
QLinearGradient g(a, b, c, d) // <----- see text below;
g.setColorAt(0, Qt::red);
g.setColorAt(0, Qt::yellow);
myThermo->setFillBrush(QBrush(g));
To copy to clipboard, switch view to plain text mode
what values I should write instead of a, b, c, d to cover the whole liquid rectangle?
Thanks!
Marco
Bookmarks