Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-127570

Not Ideal/Impossible to set the transparency of a widget to 1 (0 - 255).

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.0.0, 6.0
    • Widgets: Style Sheets
    • None
    • Linux/X11
    • 2

    Description

      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

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              thearchcoder The Arch Coder
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes