Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.4.0, 5.4.1
-
Fix Version/s: 5.4.2, 5.5.0 Alpha
-
Component/s: Core: Containers and Algorithms
-
Labels:None
-
Environment:Linux 3.8.0-44-generic #66~precise1-Ubuntu SMP Tue Jul 15 04:04:23 UTC 2014 i686 i686 i386 GNU/Linux
-
Commits: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.