Actually, QStringList and QList<QString> are different. QStringList inherits QList<QString> and adds some functionality..Originally Posted by incapacitant
Because QList is a template class, you can have a list of basically anything, as long as it is an assignable data type.
There are a few type definitions: QVariantList, QObjectList, QModelIndexList..
You can take them as a more convenient way of writing the type or something..
There is an essential reason for these type definitions, and I think it has something to do with Qt's meta-object system, only registered meta types can be used in signal and slot connections..
But that's a whole different world to discuss![]()






Reply With Quote
Bookmarks