[Qt-interest] Why do Qt collection classes not offer signals and slots?
william.crocker at analog.com
william.crocker at analog.com
Fri Dec 18 15:19:06 CET 2009
> Of course, when implementing performance-critical algorithms, you will
> want to eliminate any extra expense, but then again I gather from
> William's reply that the Qt containers don't seem to measure up to the
> standard of STL containers. If that is the case, wouldn't you want to
> use a different container implementation for such a task anyway?
>
Yes, but Qt does not provide one and I'm a one library man.
I wish the QT container classes were designed with two exposed parts.
1 - A non reference counted, less convenient, but faster container and
2 - A slower but more convenient reference counted container (which uses
a #1 for its inner shared part.)
All we get now is #2 where there is a #1 inside just dying to get out.
I have some classes which are large collections of Qt containers.
They get so large that I have to give them their own reference counted layer
(using QTSharedData and QTSharedDataPointer.)
Then, all of the reference counting on the sub-containers is a waste of
time.
Bill
More information about the Qt-interest-old
mailing list