PDA

View Full Version : Qt equivalent of boost::ptr_vector?



QPlace
20th June 2009, 21:49
I am looking for equivalent of boost::ptr_vector in Qt class hierarchy. If I am using QList<someclass> I don't see a way to use indexOf method with operator== overloaded in someclass.

wysota
20th June 2009, 22:15
If I am using QList<someclass> I don't see a way to use indexOf method with operator== overloaded in someclass.

Could you explain what you mean? indexOf will work on pointers and so will the equality operator.

QPlace
20th June 2009, 22:28
Thank you for the quick reply. It was my bad, everything works as expected.