Index out of range error
In my qt c++ application when I insert a text value concatenated with a comma opeartor I get a runtime error stating "Index out of range"! But with out comma if I only insert the line edit value to the QStringList there is no runtime error!
Following code works
but following gives a runtime error!
How can I correct this issue?
@Lasith by using the intended QStringList functions instead if an abstract and overloaded operator
@J.Hilk Thanx but I still get the run time error :(
@Lasith are you sure it actually crashes at that line?
Normally its the
myList[x] that can give "index out of range error"
not when inserting ?