What you need is to call methods directly which directly manage a list, then you have full control.
eg. in your header file:
QList<myListType*> list;
QReadWriteLock listlock;
QList<myListType*> list;
To copy to clipboard, switch view to plain text mode
then, in an append method:
listlock.lockForWrite();
list.append(foo);
listlock.unlock();
listlock.lockForWrite();
list.append(foo);
listlock.unlock();
To copy to clipboard, switch view to plain text mode
then you can have clear method, private read method, etc.
[This is only an example, there are lots of other ways to do it]
Bookmarks