Qt undocumented method setSharable

Posted by soxs060389 on Stack Overflow See other posts from Stack Overflow or by soxs060389
Published on 2010-03-26T21:48:03Z Indexed on 2010/03/26 21:53 UTC
Read the original article Hit count: 433

Filed under:
|
|
|

I stumbled about a method which seems to be present in all DataObjects like QList, QQueue, QHash...

I even investigated so far i can see the source code of it, which is

inline void setSharable(bool sharable) { if (!sharable) detach(); d->sharable = sharable; }

in qlist.h (lines 117)

but what effect does it have on the QList, QQueue, QHash... ? And is it in any way related to threading? (which sounds reasonable)

Thanks for any answer, and please only answer if you got actual knowledge.

© Stack Overflow or respective owner

Related posts about qt

Related posts about c++