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

Allow attached types to execute code at component completion

    XMLWordPrintable

Details

    Description

      In https://codereview.qt-project.org/c/qt/qtdeclarative/+/554020/25/src/quicktemplates/qquickcontextmenu.cpp#121 I was trying to defer a property of an attached type. It doesn't work because componentComplete is not called for types created from C++. Fabian said:

      Tor Arne actually also had a use case for hooking into the QQmlFinalizerHook logic from an attached property; but we avoided that so far. I'd like to avoid adding that API, but if you really have that use case, we can add it

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There is 1 open Gerrit change