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

Defining aliases on an image breaks graphical effect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.3.0
    • None
    • Windows & Mac OS
    • macOS

    Description

      If you run the attached QML scene, an orange rectangle is displayed, which is wrong. If you comment out any of the 5 aliases of the contained image item, an orange triangle is displayed, which is correct.

      This means, simply defining property aliases (not setting them) changes the way the scene is evaluated and breaks it. We fear that this is a general problem, which may cause one unsuspicious change like defining a property alias break code in another part of the program. These bugs would be very hard to find.

      Unfortunately, we could not reduce the example any further. It stems from our initial implementation for supporting colored SVGs on Retina displays. In the meantime, we have found a better solution, but we are afraid that a similar error on another component might bite us in the future.

      Attachments

        1. icon.svg
          0.2 kB
        2. PropertyAliasTest.qml
          1 kB
        For Gerrit Dashboard: QTBUG-40849
        # Subject Branch Project Status CR V

        Activity

          People

            sletta Gunnar Sletta
            che Carsten Henßinger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes