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

Qml Shape as Button's background doesn't manage well transparent color

    XMLWordPrintable

Details

    • Windows
    • a129c02e7b0d9977eafa66dc191ef185774f461e (qt/qtdeclarative/dev) 6f04dffb4ee8b49327a19b1f32246188ddc23267 (qt/qtdeclarative/6.0) d307a27cd982b000355cbd0233262feff1759372 (qt/tqtc-qtdeclarative/tqtc/lts-5.15)

    Description

      When using Qml Shape as a Control's background, we have some limitations about the transparent color.

      ShapePath {
         ...
         // STATE PRESSED NOT WORKING /!\
         fillColor: btn.pressed ? "#B45FFF" : "transparent"
         ...
      }

      When we reverse the condition, it's working but not with very well if we add an animation.

      You can find an example project attached.

      Attachments

        1. ShapeInitTransparent.png
          ShapeInitTransparent.png
          65 kB
        2. ShapeInitNonTransparent_Released.png
          ShapeInitNonTransparent_Released.png
          51 kB
        3. ShapeInitNonTransparent_Pressed.png
          ShapeInitNonTransparent_Pressed.png
          66 kB
        4. ShapeBackground.zip
          4 kB
        5. screenshot-4.png
          screenshot-4.png
          9 kB
        6. screenshot-3.png
          screenshot-3.png
          9 kB
        7. screenshot-2.png
          screenshot-2.png
          9 kB
        8. screenshot-1.png
          screenshot-1.png
          10 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            nathan_p Nathan PRIOR
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes