newtoQ_s
20th October 2015, 06:26
The following code is giving me an issue.
void MainWindow::onDelete()
{
if(ui->tableWidget->selectionModel()->hasSelection()){
QItemSelectionModel *selectionmodel =ui->tableWidget->selectionModel();
QModelIndexList selected_items= selectionmodel->selectedRows();
qSort(selected_items);
}
Whenever I run it, the program crashes giving me an error:
Invalid address specified to RtlValidateHeap( 006A0000, 00F4DB90 )
It appears to be trying to delete a node from the code in qlist. I am unable to figure out the error. Any advice would be great.
void MainWindow::onDelete()
{
if(ui->tableWidget->selectionModel()->hasSelection()){
QItemSelectionModel *selectionmodel =ui->tableWidget->selectionModel();
QModelIndexList selected_items= selectionmodel->selectedRows();
qSort(selected_items);
}
Whenever I run it, the program crashes giving me an error:
Invalid address specified to RtlValidateHeap( 006A0000, 00F4DB90 )
It appears to be trying to delete a node from the code in qlist. I am unable to figure out the error. Any advice would be great.