Uploaded image for project: 'Qt Safe Renderer'
  1. Qt Safe Renderer
  2. QSR-2256

Opacity change to SafeImage does work in QtQuick

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • QSR 2.1.0 Beta 2
    • QSR 2.0, QSR 2.1
    • Tooling
    • None

    Description

      The following code does not work in Qt Quick runtime:

          SafeImage {
              id: turnRight
              source: "qrc:/images/IconTurnRightOn.png"
              x: 900
              y: 280
              height: 48
              width: 48
              opacity: 0.0
              property bool flashing2: false
              Timer {
                  interval: 500
                  running: cluster.rightTelltale
                  repeat: true
                  onTriggered: {
                      turnRight.flashing2 = !turnRight.flashing2
                      if (cluster.rightTelltale && turnRight.flashing2) {
                          turnRight.opacity = 1.0
                      } else {
                          turnRight.opacity = 0.0
                      }
                  }
              }
          } 

      Attachments

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

        Activity

          People

            jussi_witick Jussi Witick
            teemu.holappa Teemu Holappa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes