Re: QwtLinearColorMap and alpha/transparency problem?
Brought to you by:
rathmann
|
From: Clarkson, E. C. <Edw...@gt...> - 2019-02-25 16:40:31
|
On 2/25/19, 3:23 AM, "Uwe Rathmann" <Uwe...@ti...> wrote: > Hi Ed, > > > QColor c1(255,0,0,100); > > QColor c2(0,255,0,100); > > > > QwtLinearColorMap foobar(c1, c2); > > qDebug() << c1 << c2 << foobar.color1() << foobar.color2(); > > A bug in QwtLinearColorMap::color1/2() - it has to be: > > return QColor::fromRgba( ... ); > > Fixed in all branches, > Uwe Thanks Uwe, that was driving me crazy - I didn't realize the QColor constructor threw away alpha! Any idea when the next point release might be? If it's soon enough we'll not bother to patch our copy. Thanks again, Ed |