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

No way to disable "Binding on contentItem is not deferred" warning when code deliberately doesn't care about deferred execution

    XMLWordPrintable

Details

    • c86b340f47 (qt/qtdeclarative/dev) c86b340f47 (qt/tqtc-qtdeclarative/dev) 9d22088d93 (qt/qtdeclarative/dev) 9d22088d93 (qt/tqtc-qtdeclarative/dev) 1611f5dc96 (qt/qtdeclarative/6.4) 1611f5dc96 (qt/tqtc-qtdeclarative/6.4)

    Description

      From https://bugreports.qt.io/browse/QTBUG-98439?focusedCommentId=600745&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-600745:

      Is there a way to disable the warning when we don't care if deferred execution works or not (because the item can't be overridden by the user)?

      I'm running into it with https://codereview.qt-project.org/c/qt/qtdeclarative/+/379334/24/src/quickdialogs2/quickdialogs2quickimpl/qml/FolderDialog.qml#99, but I need it to have an id, so that the attached breadcrumbBar property can refer to it.

      Minimal example:

      import QtQuick
      import QtQuick.Controls
      
      ApplicationWindow {
          id: root
          width: 600
          height: 600
          visible: true
      
          Control {
              contentItem: Column {
                  Item {
                      id: breadcrumbBar
                  }
              }
          }
      }
      

      The warning is:

      Binding on contentItem is not deferred as requested by the DeferredPropertyNames class info because one or more of its sub-objects contain an id
      

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes