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

Window vs. Rectangle color inconsistency

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.3.1
    • Quick: SceneGraph
    • None
    • All

      Both the Window QML type, as well as the Rectangle type have a property color. However, a Window expects premultiplied alpha, whereas Rectangle expects straight alpha. This is inconsistent, confusing and not documented.

      In the attached QML code, the inner window color is "#80008000" and the rectangle color is "#8000FF00" (different green channel). Still they appear the same.

      Ideally this could be harmonized or at least documented.

        1. window.qml
          0.5 kB
          Bernd Weimer
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            janichol Andy Nichols
            bweimer Bernd Weimer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes