Qt error--Error

出现原因:

使用了不存在的兑现

数组越界

用delete释放未分配的内存空间,或者超过一次释放同个内存。

比如:

顺序不能颠倒

正确:

ui->setupUi(this);

ui->tableWidget->setColumnWidth(0, 100);

错误:

ui->tableWidget->setColumnWidth(0, 100);

ui->setupUi(this);
 
原文地址:https://www.cnblogs.com/sggggr/p/12716759.html