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

QML AnchorChanges do not compile in strict mode

    XMLWordPrintable

Details

    • 96f4e60ff (dev), 86268411e (dev), 4171f5c73 (dev), fcff01fde (dev), 47175a6ce (dev), b5e586f98 (dev), 123a4188d (dev), 4d590880b (6.9), 91bd35016 (6.9), c130f86e6 (6.9), 6c44ef943 (tqtc/lts-6.8), b4b680ab5 (tqtc/lts-6.8)

    Description

      The following does not compile in strict mode:

      AnchorChanges {
          target: myRect
      
          // could not compile binding for top: Cannot generate efficient code for internal
          // conversion with incompatible or ambiguous types: QQuickItem::top with type
          // QQuickAnchorLine (stored as QVariant) -> QQuickItem::top with type QQuickAnchorLine
          // (stored as QVariant)
      
          anchors.top: window.top
          anchors.bottom: window.bottom
      }
      

      To reproduce, run attached example.

      Attachments

        For Gerrit Dashboard: QTBUG-134790
        # Subject Branch Project Status CR V

        Activity

          People

            olivier.decanniere Olivier De Cannière
            lysandra.sola Lysandra Sola
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: