Does QList support abstract classes though?
Does QList support abstract classes though?
What do you mean? You can store anything you like in a QList, but if you're trying to store classes derived from some abstract base class, you'll have to store pointers to the base class, not the derived classes themselves. That's how C++ handles such things.
QList itself, however, doesn't care what you store in it, as long as all the elements match the template type.
Bookmarks