i use the debug mode step by step. When this line is executed I get that error.
In mainwindow.cpp I have a button which calls a slot function
connect( loadComponentParameters, SIGNAL(triggered()),this->widget,SLOT(loadComponentParameterTableFromFile()) );
connect( loadComponentParameters, SIGNAL(triggered()),this->widget,SLOT(loadComponentParameterTableFromFile()) );
To copy to clipboard, switch view to plain text mode
when the program gets into the slot function, it works fine, until I get to that declaration.
Moving the declaration in several positions in the function has the same effect. Runtime error when I get there.
void MyWidget::loadComponentParameterTableFromFile()
{
toggleAutomaticReplotStatus(false);
modelVector->clear();
int lineIndex = 0,model_index = 0, row_index = 0,column_index = 0, numberOfSets = 0;
void MyWidget::loadComponentParameterTableFromFile()
{
toggleAutomaticReplotStatus(false);
modelVector->clear();
QString line;
int lineIndex = 0,model_index = 0, row_index = 0,column_index = 0, numberOfSets = 0;
QStringList numberOfComponentsPerSet, namesOfSets;
To copy to clipboard, switch view to plain text mode
The program crashes when I just click the loadComponentParameters button!
Any ideas?!
Bookmarks