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

QML loader loads parts of old component

    XMLWordPrintable

Details

    • Linux/Wayland, Linux/X11
    • b6d88c73c4affec93655f97588abc7ae1d53cea0 (qt/qtdeclarative/5.13)

    Description

      When reusing a QML loader for loading different qml files then parts of last loaded item is visible when loading a new item which inherits from the first item. I have uploaded a small example.

      Steps to reproduce:
      1. Click on comp2 (Should show a blue rectangle over a red rectangle with some text stating comp2)
      2. Click on comp1 (Should show a green rectangle with text stating comp1)
      3. Click on comp2 again

      Result: Step 3 should show the same as step 1 but instead it shows a blue rectangle over a green one with text stating comp1. In short: the properties "color" and "text" for Comp1 are not overridden by Comp2.

      Can reproduce on:

      • desktop 64 bit linux with X11 using the attached files
      • arm 32 bit linux with wayland using similar code

      This bug may be related to QTBUG-50677

      Attachments

        1. Comp1.qml
          0.3 kB
        2. Comp2.qml
          0.4 kB
        3. loaderbug.pro
          1 kB
        4. main.cpp
          0.4 kB
        5. main.qml
          0.9 kB
        6. qml.qrc
          0.1 kB
        For Gerrit Dashboard: QTBUG-79435
        # Subject Branch Project Status CR V

        Activity

          People

            fabiankosmale Fabian Kosmale
            decon Daniel M
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes