View Full Version : Qt containers or STL containers?
sparticus_37
11th May 2010, 08:22
which should i use and why should i use them when building a multithreaded QT app, the QT container classes or those provided by the STL?
Zlatomir
11th May 2010, 14:06
Qt Concurrent supports several STL-compatible container and iterator types, but works best with Qt containers that have random-access iterators, such as QList or QVector...
Quoted from: doc.trolltech.com (http://doc.trolltech.com/4.5/threads.html)
The answer is: depends on many things (like how do you use threads, what modification you do to data...)
Recommended reading more here (http://doc.trolltech.com/4.6/threads.html)
wysota
11th May 2010, 15:12
Neither STL nor Qt containers are thread-safe. Both STL and Qt containers are reentrant.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.