Here is a sample code:
Qt Code:
QList<QString> list; QString value; value.setNum(10,10); for(int i=0;i<10;i++) list.append(value);To copy to clipboard, switch view to plain text mode
Here is got a problem.It says that in the for loop, it is destroying the string value. So my application is exiting.
Is there any suggestion for this?
Bookmarks