Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.4.0, 5.4.1
-
None
-
Linux 3.8.0-44-generic #66~precise1-Ubuntu SMP Tue Jul 15 04:04:23 UTC 2014 i686 i686 i386 GNU/Linux
-
6716fe8cfdeb5f8cd63d6dde8252b25d86622404
Description
QVector::removeAll(), which is new in Qt 5.4.0, does not remove elements. In my case the vector was a container of QTcpSocket pointers. I would attempt to remove sockets as they were disconnected. But they were not removed.
Changing the container to QList, with no other changes, worked. This behavior is limited to QVector.