<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If we did the search & replace and use QVector throughout our API, won't that make it harder for our users to maintain a code base with 5 and 6? For example if we change the signature of virtual functions.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I think we'd do our users a favour by sticking to QList - I'm not concerned about the popularity of Qt in online forums but rather about the practical difficulties of developing with Qt.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Simon</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Laszlo Agocs <laszlo.agocs@qt.io><br>
<b>Sent:</b> Thursday, April 23, 2020 10:41<br>
<b>To:</b> Jaroslaw Kobus <Jaroslaw.Kobus@qt.io>; Lars Knoll <lars.knoll@qt.io>; Simon Hausmann <Simon.Hausmann@qt.io><br>
<b>Cc:</b> Qt development mailing list <development@qt-project.org><br>
<b>Subject:</b> Re: [Development] Proposal: Deprecate QVector in Qt 6</font>
<div> </div>
</div>
<style type="text/css" style="display:none">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
-1 for QList. Why reuse and prioritize a name that has been tainted by plenty of past discussions and comes with a lot of past baggage? Any Google etc. search will bring up plenty of "QList-bad QVector-good" materials for years to come, potentially leading
 to lots of Qt 5 vs Qt 6 confusion. Also, Qt 5.x is not going to disappear overnight.<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
The current status quo of QList being an alias to QVector in Qt 6, with QVector being the primary and recommended name, is pretty good IMHO, it is not clear to me why this would need any further changes. An additional search & replace (QList->QVector) round
 in the public headers does not sound like a bad idea at all.<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Best regards,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Laszlo</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Development <development-bounces@qt-project.org> on behalf of Jaroslaw Kobus <Jaroslaw.Kobus@qt.io><br>
<b>Sent:</b> Thursday, April 23, 2020 10:20 AM<br>
<b>To:</b> Lars Knoll <lars.knoll@qt.io>; Simon Hausmann <Simon.Hausmann@qt.io><br>
<b>Cc:</b> Qt development mailing list <development@qt-project.org><br>
<b>Subject:</b> Re: [Development] Proposal: Deprecate QVector in Qt 6</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">+1 for QList.<br>
<br>
(6) No need to remane QStringList into QStringVector for consistency reasons.<br>
<br>
Jarek<br>
<br>
________________________________________<br>
From: Development <development-bounces@qt-project.org> on behalf of Lars Knoll <lars.knoll@qt.io><br>
Sent: Thursday, April 23, 2020 9:53 AM<br>
To: Simon Hausmann<br>
Cc: Qt development mailing list<br>
Subject: Re: [Development] Proposal: Deprecate QVector in Qt 6<br>
<br>
I’ve had similar thoughts lately as well. I can see a few more reasons to keep QList as the name of the class:<br>
<br>
(3) Less ambiguity with QVector(2/3/4)D<br>
(4) QList is the known type and the one promoted in our API so far, so no need for people to re-learn Qt<br>
(5) a lot less code churn for us and our users<br>
<br>
So I’m in favour of doing this and keeping QList as the name for the class.<br>
<br>
Cheers,<br>
Lars<br>
<br>
On 23 Apr 2020, at 09:43, Simon Hausmann <Simon.Hausmann@qt.io<mailto:Simon.Hausmann@qt.io>> wrote:<br>
<br>
Hi,<br>
<br>
In dev we've had QVector being an alias for QList for a while now. For the 6.0 release this particular topic (QList/QVector) suggests two goals (among others):<br>
<br>
    (1) Use the same type throughout the public API of Qt.<br>
<br>
    (2) Make it easy for our users to maintain a code base that works with Qt 5 and 6.<br>
<br>
<br>
In the light of those two goals, I think we should keep using QList as the type in the public API. I don't think we should do a search and replace activity and switch to QVector. In the light of that, I would like to propose simply deprecating QVector and stick
 to QList everywhere.<br>
<br>
<br>
What do you think?<br>
<br>
<br>
Simon<br>
_______________________________________________<br>
Development mailing list<br>
Development@qt-project.org<mailto:Development@qt-project.org><br>
<a href="https://lists.qt-project.org/listinfo/development">https://lists.qt-project.org/listinfo/development</a><br>
<br>
_______________________________________________<br>
Development mailing list<br>
Development@qt-project.org<br>
<a href="https://lists.qt-project.org/listinfo/development">https://lists.qt-project.org/listinfo/development</a><br>
</div>
</span></font></div>
</div>
</body>
</html>