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

ListView::header doing anything during construction to affect ListVIew::model will likely crash and burn

    XMLWordPrintable

Details

    Description

      Picture the case where you have a C++ model in a ListView, and a header component on that ListView.

      Your header component sets a property, say a filter on the model during construction of the header component. Now, QML will go crash itself because it tries to create delegates while it's still constructing the header.

      A similar issue likely exists with ListView's footer too.

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            w00t Robin Burchell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes