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

QML Loader fail to destory last sourceComponent after new source assignment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • None
    • 5.10.0
    • None
    • Qt 5.10.0

      Win10 64bit

      Ubuntu 16.04 64bit

      Documentation says:

      If the source or sourceComponent changes, any previously instantiated items are destroyed. Setting source to an empty string or setting sourceComponent to undefined destroys the currently loaded object, freeing resources and leaving the Loader empty.

       

      But, In fact I found a continuous increment of memory while keep assigning new sources to the same Loader. It becomes serious when you use a TableView where a lot Tabs with multiple layouts and controls are placed on. Since Tab inherits Loader, function addTab will show a great memory increment and removeTab fail to recycle it. This happens both on Ubuntu16.04 and Windows 10.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            blademaster98 blademaster98
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes