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

Alpha component of style sheets does not differentiate between 1 as float or int

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15, 6.5
    • Widgets: Style Sheets
    • None
    • All

    Description

      Years ago, a change to qcssparser introduced the possibility to use float values for the alpha component in stylesheets.

      While the support may be welcome, it makes using 0-255 integer values problematic (which is what the documentation states should be done) because 1 is always interpreted as 1.0.

      While it may be argued that 1 would be practically transparent and one would theoretically never need such a value, it's still a problem in case style sheets might be computed dynamically, and completely inconsistent with the documented behavior.

      Attachments

        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
            musicamante Maurizio Berti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes