View Full Version : Qt equivalent of boost::ptr_vector?
QPlace
20th June 2009, 20: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, 21: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, 21:28
Thank you for the quick reply. It was my bad, everything works as expected.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.