-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replaced QVector
with QList
#7397
base: main
Are you sure you want to change the base?
Conversation
it is just an alias
Looks like this is true for Qt6+: https://doc.qt.io/qt-6/qvector.html Actually, it sounds like QList has become QVector (elements are contiguous), so QVector seems to be the proper name. |
https://doc.qt.io/qt-6/qlist.html#details
So to be pedantic this would need to wait until Qt 5 support has been removed. And I do not think that it would have any effect on our code. |
I just think it's odd that Qt has changed the behavior of one of its favorite containers so that its now a misnomer... |
I think the motivation is strange. It's not a problem that the underlying type is QList. A better motivation would be: "it's more logical to use QList because.." and then motivate why we don't want contiguous memory... and well if we get contiguous memory anyway that is how it is but at least the intent is clear.. I think the typename itself signals intent.. |
Yes. Just a wild guess maybe they saw that the "wrong" container was used too much by developers.. or maybe they were lazy and only wanted to maintain 1 implementation :-) |
There is a whole official blog post about it: https://www.qt.io/blog/qlist-changes-in-qt-6 |
That does not say that QVector should be avoided. |
it is just an alias