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

Crash when refreshing a ListView.view.property with C++ model and delegate created with Loader

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 4.8.0
    • None
    • PC Ubuntu

    Description

      When you load a delegate through a Loader element, the elements are not destroyed when the C++ context property is refreshed.

      So, asking next of a refresh of a ListView property will make crash the application when accessing to the "model.modelData" property.

      The project is dynamiclist.tar.gz and backtrace is located in qt4.8.0_backtrace.txt. It is only necessary to click on the button "remove all items" to see the application crash.

      Qt 5.0.0 Alpha is more robust but I made it crash with a more complex project. See qt5_backtrace.txt

      Attachments

        1. dynamiclist.tar.gz
          71 kB
        2. qt4.8.0_backtrace.txt
          8 kB
        3. qt5_backtrace.txt
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            agroyer Anthony Groyer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes