- 
    Suggestion 
- 
    Resolution: Duplicate
- 
     Not Evaluated Not Evaluated
- 
    None
- 
    5.0.0, 6.0
- 
    None
- 
    I am on Ubuntu 24.04 with KDE installed. I use the X11 windowing system (i tried wayland but its really bad). I am also using qt stylesheets, if i had used normal qstyles the error probably wouldnt have occured. Also i am using PyQt5, The python bindings for qt. But the issue happens on PyQt6 too. I use integrated graphics, Intel cpu. Specifically i use the HP-EliteDesk-800-g1 prebuilt pc from Hp. I am on Ubuntu 24.04 with KDE installed. I use the X11 windowing system (i tried wayland but its really bad). I am also using qt stylesheets, if i had used normal qstyles the error probably wouldnt have occured. Also i am using PyQt5, The python bindings for qt. But the issue happens on PyQt6 too. I use integrated graphics, Intel cpu. Specifically i use the HP-EliteDesk-800-g1 prebuilt pc from Hp.
- 
        
- 
        2
So i was recently experimenting with transparency values from 0 to 255, and creating a widget for each of them. But i saw that the widget with the transparency of "1" was fully visible, Even though it should be barely visible at all.
I then realized that for the Alpha value in the rgba() function in stylesheets has 2 different implementations, One which takes alpha values from 0 - 255, And the other from 0.0 to 1.0. Hence, when i gave it the alpha value of 1 it thought i was trying to make the button fully visible with "1" (0.0 - 1.0) instead of "1" (0 - 255).
I personally think that if the alpha number has no ".", It should assume that the user is entering the alpha value from 0 to 255 instead of from 0.0 to 1.0
- duplicates
- 
                    QTBUG-40678 Alpha = 1, makes the object totally opaque instead of nearly transparent -         
- Reported
 
-         
- 
                    QTBUG-122981 Alpha component of style sheets does not differentiate between 1 as float or int -         
- Closed
 
-         
- is duplicated by
- 
                    QTBUG-122981 Alpha component of style sheets does not differentiate between 1 as float or int -         
- Closed
 
-