I don't know if this is possible...but I get run time error when the program reaches this line:

Qt Code:
  1. QStringList numberOfComponentsPerSet, namesOfSets;
To copy to clipboard, switch view to plain text mode 

ASSERT failure in QList<T>::at: "index out of range", file c:\Qt\4.7.4\include/QtCore/../../src/corelib/tools/qlist.h, line 456

How can I be out of range when creating the variables?