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

Qt asserts when using a AbstractListModel in QML.

    XMLWordPrintable

Details

    Description

      When I ran the code using a debug build of Qt I get the assertion:

      ASSERT: "idx >= 0 && idx < d->type->d->names.count()" in file /home/hugo/src/qt/src/declarative/util/qdeclarativeopenmetaobject.cpp, line 371

      The value of idx and d->type->d->names.count() both are 2.

      In release mode the code works without any segfault. This bug is related to PySide bug 814[1]

      [1] http://bugs.pyside.org/show_bug.cgi?id=814

      Attachments

        1. bug814.qml
          0.1 kB
          Hugo Parente Lima
        2. foo.cpp
          0.9 kB
          Hugo Parente Lima
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            denexter Andrew den Exter (closed Nokia identity) (Inactive)
            hugopl Hugo Parente Lima
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes