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

QAbstractListModel crashes on endMoveRows() (ASSERT: "!this->isEmpty()")

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.0
    • Core: Object Model
    • None
    • Windows 7 64bit, Qt4.8, QtCreator, MSVC

      Hey,

      when using beginMoveRows() and endMoveRows() of QAbstractListModel, endMoveRows() causes the program to crash in debug mode.
      The attached code should demonstrate the crash (only debug mode of course).

      Following error is thrown:
      Debug Error!
      Program: ...for_Desktop-MSVC2010Qt_SDK_Debug\debug\ItemMoveTest.exe
      Module: 4.8.0
      File: global\qglobal.cpp
      Line: 2232
      ASSERT: "!this->isEmpty()" in file c:\iwmake\build_vs2010_opensource________________padding________________\include\qtcore\../../src/corelib/tools/qstack.h, line 68

      This happened to me in some different situations.

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

            earthdomain Earth Domain (Inactive)
            marsupial Fabian Beutel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes