[Qt-interest] Why do Qt collection classes not offer signals and slots?
Donal O'Connor
donaloconnor at gmail.com
Thu Dec 17 16:49:27 CET 2009
It wouldn't be a very common requirement so if you do need it, you can
simply inherit and apply it yourself I guess...
No point adding this extra delay generally to everyone just for a few rare
circumstances...
On Thu, Dec 17, 2009 at 3:47 PM, william.crocker at analog.com <
william.crocker at analog.com> wrote:
>
> >
> > I was just wondering, I thought this was the most obvious thing to
> have... If Qt containers supported signals and slots, you could write e.g.:
> >
> > QVector<int> * myVector = new QVector<int>();
> > connect(myVector, SIGNAL(elementAdded(int)), this, updateList());
> >
> > Is there a reason for the lack of signals in Qt's collection classes? Or
> am I missing something?
> >
> >
>
> Because they are slow enough already.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091217/7fc8ff85/attachment.html
More information about the Qt-interest-old
mailing list