It doesn't matter, it will work fine without pointers. Just make sure you implement the copy constructor and assign operator (unless the ones provided by the compiler are fine) and think about making your Number an implicitly shared class (see QSharedData).
No, because the list contains pointers so it also compares pointers.so contains doesn't support pointers ? even if the object implements == ?
Bookmarks