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

Loader needs setSource counterpart for sourceComponent with initial properties

    XMLWordPrintable

Details

    Description

      Background

      See https://bugreports.qt.io/browse/QTBUG-125071 and https://bugreports.qt.io/browse/QTBUG-125070 on why this might be important in certain scenarios.

      Problem

      Loader QML Type implements a source & sourceComponent pair of properties, and a setSource() method. The latter allows assigning a new source URL with a set of initial properties. However, sourceComponent doesn't have such counterpart, making the Loader type inqonsistent with itself, and without it you can't even implement workarounds like described at the bottom of https://bugreports.qt.io/browse/QTBUG-125071

      Solution

      Introduce a setSourceComponent(Component sourceComponent, object properties) invokable method.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            ratijas ivan tkachenko
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes