Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
5.11.0 RC 1
-
None
Description
From QBrush::isOpaque():
... The alpha component of the color() is 255 ...
This is wrong. When I use setAlphaF(0.999) then alpha() will be == 255, but the color is not opaque, because QColor (currently) stores in 16 bit precision.
I could use alphaF() but that would require a conversion from qreal to int (implying a floating point division), which is slower then the integer access method.
A function QColor::isOpaque() which would just compare the alpha member to 65535 would be nice.
Attachments
Issue Links
- replaces
-
QTBUG-13225 qtdemo on windows: Failed to launch the example (Spectrum Analyzer)
-
- Closed
-