[Interest] .remove() feature?

Roland Hughes roland at logikalsolutions.com
Fri Sep 23 15:02:27 CEST 2016


It was a C++ for (int x=0;...) loop, but we are compiling for C++ 11


On 09/23/2016 07:44 AM, Lorenz Haas wrote:
> Hi,
>
>> Has anybody
>> else seen this behavior in 5.x? Is removeAt() really queueing a low priority
>> event so the removeAt() doesn't actually happen until the event queue is
>> processed completely?
> my QHash only has a remove() function. Also, it removes the item right
> away, no events involved:
> https://github.com/qt/qtbase/blob/dev/src/corelib/tools/qhash.h#L785
>
> What "for()" loop are you talking about, may be a Q_FOREACH? Are you
> sure the loop was working on the hash? Maybe it was just a copy of the
> hash they thought they were working on?
>
> Cheers
> Lorenz




More information about the Interest mailing list