after clearing a list cant i append new items next tim???
Printable View
after clearing a list cant i append new items next tim???
you can... Create items using QTableWidgetItem and create a row using insertRow() and set the items.
nooo i m askin about a Qlist....not table....
yes you can.
try this
Code:
... QList<int> ints; ints << 1 << 2 << 3; qDebug() << ints; ints.clear(); ints << 4 << 5 << 6; qDebug() << ints; ...
:D Reminds me of the german saying "Zwei Dumme, ein Gedanke." (In English it is I think: Great minds think alike.)...
okay got it...
well i use append function as my QList is like this...
QList<QPair<QString, int> > instructionList; to add items...i hope its correct