Ok here are the two lists I have to begin with:
QStringList priceList;
// {'pricex','pricey','pricez','pricet','priceu','pricex','pricet'}
QStringList refList; // {'x','y','z','t','u','x','t'}
QStringList priceList; // {'pricex','pricey','pricez','pricet','priceu','pricex','pricet'}
To copy to clipboard, switch view to plain text mode
Those are the three list I want to get ( I added the quantity list) :
QStringList refListWithOutDuplicates;
//{'x','y','z','t','u'} QStringList priceList;
// {'pricex','pricey','pricez','pricet','priceu'} QStringList qtyOfEachRef;
// {'qty_of_x','qty_of_y','qty_of_z','qty_of_t','qty_of_u'}
QStringList refListWithOutDuplicates; //{'x','y','z','t','u'}
QStringList priceList; // {'pricex','pricey','pricez','pricet','priceu'}
QStringList qtyOfEachRef; // {'qty_of_x','qty_of_y','qty_of_z','qty_of_t','qty_of_u'}
To copy to clipboard, switch view to plain text mode
update: by quantity I mean number of iteration of each ref.
Thanx in advance
Pat
Bookmarks