Hi there,
I have put several tasks in a QList and when the task is done it shall be deleted form the list. If I do
the first element disappears but iniList.count(); still gives me the initial number of elements. I guess removeFirst() does not "shrink" the list, the list still got n values just the first is empty and therefore not displayed. Is there a way to shorten the list?Qt Code:
iniTextList.removeFirst();To copy to clipboard, switch view to plain text mode
[EDIT]
Sorry for the post! I just realized that I was deleting elements from the view and counted the elements of the underlying list.
Bookmarks