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

Crash when calling mapToItem on QML Flickable's contentItem

    XMLWordPrintable

Details

    • qt/9cfac2e38cde24a2fbca4c1cebcf7a771443894a

    Description

      Trying to align a rectangle with the current item inside a ListView, I discovered that qt would segfault whenever I called mapToItem on the listview's contentItem.

      Backtracing I see that this is caused by QDeclarativeEngine::contextForObject(ptr_to_listViewContentItem) returning 0, which is dereferenced in QDeclarativeItem::mapToItem.

      See the attached minimal example.

      Attachments

        1. maptest_v1.tar.gz
          0.8 kB
        2. maptest.cpp
          1 kB
        3. maptest.pro
          0.3 kB
        For Gerrit Dashboard: QTBUG-29572
        # Subject Branch Project Status CR V

        Activity

          People

            leonlee Leonard Lee
            hhvaal Harald Hvaal
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes