Hi All,
I have a list, that I fill with a QStringList. That works.
When I select an item, I want the list to be cleared and then filled with another QStringList.
The problem is, that when I click on one of the items, my whole Programme crashes, because of the following Error:
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the process directly
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the process directly
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check
To copy to clipboard, switch view to plain text mode
my function for the Listwrite is the following:
ui->list->clear();
ui->list->addItems(results);
}
void layout1::writeResultList(QStringList results){
ui->list->clear();
ui->list->addItems(results);
}
To copy to clipboard, switch view to plain text mode
Does anyone have an idea, why it crashes?
Thanks.
Bookmarks