使用qt运行程序,代码没问题,运行不了,显示程序异常关闭,不知道是哪儿的问题
会显示这些
15:15:05: Starting D:\QT\QT3\build-demo-Desktop_Qt_5_14_2_MinGW_64_bit-Debug\debug\demo.exe ...
ASSERT failure in QList<T>::operator[]: "index out of range", file D:/LenovoSoftstore/Install/QTnew/5.14.2/mingw73_64/include/QtCore/qlist.h, line 579
15:15:06: 程序异常结束。
15:15:06: The process was ended forcefully.
15:15:06: D:\QT\QT3\build-demo-Desktop_Qt_5_14_2_MinGW_64_bit-Debug\debug\demo.exe crashed.
求捞捞
ASSERT failure in QList::operator[]: "index out of range", file D:/LenovoSoftstore/Install/QTnew/5.14.2/mingw73_64/include/QtCore/qlist.h, line 579
这个告诉你在qlist.h的文件中,第579行有代码的qlist列表访问超出界限,你检查下代码
这个提示就是Qlist数组越界了,仔细检查qlist,有没有存在越界的可能。
数组下标越绝。代码不多的话提供下代码,或者代码里搜索QList<,然后下断点调试。
QList 数组越界 看看代码哪里用了QList