Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Joerg Bornemann
On 4/23/20 15:52, Thiago Macieira wrote: Proposed: template using QVector = QList; // mark deprecated template class QList { $(implementation to be moved); } Proposal 2: template class QList { $(implementation to be moved); } template using QVector = QList; no deprec

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Ville Voutilainen
On Fri, 24 Apr 2020 at 00:13, Vitaly Fanaskov wrote: > How often do you think we can play this game until people look for > something they consider more stable? > > Moving to one year release approach doesn't equal to make Qt less stable. Of course it does, if we now allow API breaks every year.

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Vitaly Fanaskov
One year for a major Qt release and then break API? I didn't say that. The thing is that there will be much less changes for one year. It means that you need to do less job to switch a version. I hope it also will lead to more careful feature planning and API design. With shorter release cycle it

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Manuel Bergler
Am Do., 23. Apr. 2020 um 21:01 Uhr schrieb Giuseppe D'Angelo via Development : > > On 4/23/20 6:54 PM, Manuel Bergler wrote: > >> This is a documentation bug or a Creator bug. You're supposed to land on > >> this anchor:https://doc.qt.io/qt-5/qvariant.html#QVariantList-typedef > > Technically this

Re: [Development] Clang-based refactoring to Qt 6 (Proposal: Deprecate QVector in Qt 6)

2020-04-23 Thread Sérgio Martins via Development
On 2020-04-23 14:55, Thiago Macieira wrote: On Thursday, 23 April 2020 05:25:33 PDT Vitaly Fanaskov wrote: Provide clang-based tools to (semi-)automatically port users' code bases to a new version of Qt. These tools might either fix a code or at least add a comment in potentially problematic pl

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Matthew Woehlke
On 23/04/2020 10.45, Giuseppe D'Angelo via Development wrote: (Otherwise, "list" in Python is heterogeneous, why isn't QList heterogeneous?) That doesn't count; *variables* in Python are heterogeneous. a = 5 # type(a) == int a = 'foo' # type(a) == str It should not surprise one that

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Giuseppe D'Angelo via Development
On 4/23/20 6:54 PM, Manuel Bergler wrote: This is a documentation bug or a Creator bug. You're supposed to land on this anchor:https://doc.qt.io/qt-5/qvariant.html#QVariantList-typedef Technically this is the correct place to land on, but it isn't helpful. Just like Julius, if I have a container

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Matthew Woehlke
On 23/04/2020 05.30, Ville Voutilainen wrote: On Thu, 23 Apr 2020 at 12:25, Philippe wrote: QList is historically a cause of ambiguity, and Qt6 is the chance to get rid of that. Indeed. In Qt5, QList is sometimes a list, sometimes a vector, but in Qt6 it's never a list. Correction: in Qt5,

[Development] Qt Visual Studio Tools 2.5.0 released

2020-04-23 Thread Miguel Costa
A development release of version 2.5 of the Qt VS Tools is now available. (Changelog: https://code.qt.io/cgit/qt-labs/vstools.git/tree/Changelog?id=0048dbab02ca6ee81dd3b27ff1525e02ce756ac7 ) Installation packages for v2.5.0 can be downloaded from: https://download.qt.io/development_releases

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread André Pönitz
On Thu, Apr 23, 2020 at 04:45:02PM +0200, Giuseppe D'Angelo via Development wrote: > On 4/23/20 1:20 PM, Edward Welbourne wrote: > > So how much harm does it really cause, to keep both names; and use > > whichever feels like the more natural description of the value one is > > returning ? > > I m

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Manuel Bergler
Am Do., 23. Apr. 2020 um 18:07 Uhr schrieb Giuseppe D'Angelo via Development : > > On 4/23/20 5:04 PM, Julius Bullinger wrote: > > Another suggestion: Get rid if the aliases; use the fully-qualified > > types instead. > > > > I'm always irritated if I open the documentation of QVariantList from > >

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Giuseppe D'Angelo via Development
On 4/23/20 5:04 PM, Julius Bullinger wrote: Another suggestion: Get rid if the aliases; use the fully-qualified types instead. I'm always irritated if I open the documentation of QVariantList from within Qt Creator, and land on the QVariant docu instead. I'm interested in the features of the con

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread André Pönitz
On Thu, Apr 23, 2020 at 05:04:27PM +0200, Julius Bullinger wrote: > On 23.04.2020 16:45, Giuseppe D'Angelo via Development wrote: > > == Naming of functions and types if QList = QVector == > > > > We have QStringList, QVariantList and friends, which are aliases / > > subclasses of QList and so on.

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread André Pönitz
On Thu, Apr 23, 2020 at 12:25:33PM +, Vitaly Fanaskov wrote: >I think we should completely remove QList in Qt6. It was planned >before, as far as I remember. The main reason is to be consistent with >STL wording and do not violate POLA too much. > >I read the entire discussion,

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Julius Bullinger
On 23.04.2020 16:45, Giuseppe D'Angelo via Development wrote: == Naming of functions and types if QList = QVector == We have QStringList, QVariantList and friends, which are aliases / subclasses of QList and so on. Should they become QStringVector, QVariantVector; and the *List names stay, a

Re: [Development] Clang-based refactoring to Qt 6 (Proposal: Deprecate QVector in Qt 6)

2020-04-23 Thread Vitaly Fanaskov
1) Clang cannot compile all Qt-using codebases. Therefore, its tooling cannot work in all cases either. That's true, but on the other hand, covering at least a half of code bases would be a huge progress. I don't have representative statistics, but I guess that the real percentage will be larger.

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Simon Hausmann
Hi, You're right, I was mistaken. I tried the virtual method API change locally and it works with the aliasing, either way. So it's only a problem if we combined it with deprecation and asked our users to move over while they want to maintain compatibility with both versions of Qt. Thiago's pro

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Giuseppe D'Angelo via Development
On 4/23/20 1:20 PM, Edward Welbourne wrote: So how much harm does it really cause, to keep both names; and use whichever feels like the more natural description of the value one is returning ? I missing the bigger picture about this thread. What are we trying to assess / solve? == Source co

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Simon Hausmann
Hi, I think your proposal is fine, too - still counts as something that improves the situation for our users and our API. And they'd certainly appreciate one deprecation warning less ;-) Simon From: Development on behalf of Thiago Macieira Sent: Thursday, Ap

[Development] Clang-based refactoring to Qt 6 (Proposal: Deprecate QVector in Qt 6)

2020-04-23 Thread Thiago Macieira
On Thursday, 23 April 2020 05:25:33 PDT Vitaly Fanaskov wrote: > Provide clang-based tools to (semi-)automatically port users' code bases to > a new version of Qt. These tools might either fix a code or at least add a > comment in potentially problematic places where a user should correct the > cod

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Thiago Macieira
On Thursday, 23 April 2020 02:15:29 PDT Simon Hausmann wrote: > Proposed: > > template using QVector = QList; // mark deprecated > template class QList { $(implementation to be moved); } Proposal 2: template class QList { $(implementation to be moved); } template using QVecto

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Thiago Macieira
On Thursday, 23 April 2020 01:41:54 PDT Laszlo Agocs wrote: > -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

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Elvis Stansvik
Den tors 23 apr. 2020 kl 13:38 skrev André Pönitz : > > On Thu, Apr 23, 2020 at 12:48:45PM +0200, Elvis Stansvik wrote: > > Den tors 23 apr. 2020 kl 11:45 skrev Laszlo Agocs : > > > > > > That depends on the number of the functions affected, and how commonly > > > those > > > are used. If we are t

Re: [Development] [Announce] Qt Creator 4.12 released

2020-04-23 Thread Henry Skoglund
On 2020-04-23 11:48, List for announcements regarding Qt releases and development wrote: We are happy to announce the release of Qt Creator 4.12! https://www.qt.io/blog/qt-creator-4.12-released Thank you! I like the new Restart feature, i.e. when you switch Theme, say from Flat Light to Flat D

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Vitaly Fanaskov
I think we should completely remove QList in Qt6. It was planned before, as far as I remember. The main reason is to be consistent with STL wording and do not violate POLA too much. I read the entire discussion, and I'd like to say this one more time: we don't have to fight the consequences. Be

[Development] Coin production update 1.4

2020-04-23 Thread Toni Saario
Hi everyone, Coin version 1.4 has gone thorough testing process and a Coin production update is scheduled for tomorrow 24.4.2020 at 1pm CEST. In the update the Coin instance is moved to another host. This causes all modules to be rebuilt as storage is not transferred in the process. The rebuild

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread André Somers
On 23-04-20 12:49, Mitch Curtis wrote: -Original Message- From: Development On Behalf Of André Somers Sent: Thursday, 23 April 2020 12:04 PM To: Jaroslaw Kobus ; development@qt-project.org Subject: Re: [Development] Proposal: Deprecate QVector in Qt 6 Hi, On 23-04-20 11:58, Jaroslaw K

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Morten Sørvig
> On 23 Apr 2020, at 11:30, Ville Voutilainen > wrote: > > On Thu, 23 Apr 2020 at 12:25, Philippe wrote: >> >> Almost all the time I second your positions, but not this time ;) >> >> QList is historically a cause of ambiguity, and Qt6 is the chance to get rid >> of that. > > Indeed. QList

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Ville Voutilainen
On Thu, 23 Apr 2020 at 14:28, André Pönitz wrote: > > On Thu, Apr 23, 2020 at 12:30:32PM +0300, Ville Voutilainen wrote: > > On Thu, 23 Apr 2020 at 12:25, Philippe wrote: > > > > > > Almost all the time I second your positions, but not this time ;) > > > > > > QList is historically a cause of amb

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread André Pönitz
On Thu, Apr 23, 2020 at 12:48:45PM +0200, Elvis Stansvik wrote: > Den tors 23 apr. 2020 kl 11:45 skrev Laszlo Agocs : > > > > That depends on the number of the functions affected, and how commonly those > > are used. If we are talking about just a few virtual functions here and > > there > > which

[Development] HEADS-UP: Branching from '5.15' to '5.15.0' done

2020-04-23 Thread Jani Heikkinen
Hi all, Branching from '5.15' to '5.15.0' is now done. So from now on all changes targeted to Qt 5.15.0 release must to be done in '5.15.0' and '5.15' is for Qt 5.15.1. As usual no any nice-to-haves in '5.15.0' anymore. Target is to publish Qt 5.15.0 RC at the end of April and so on we really n

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread André Pönitz
On Thu, Apr 23, 2020 at 12:17:38PM +0200, Daniel Engelke wrote: >> You'd need also adapt some variable and function names, >> comments and documentation are silently broken. > >I don't really see it, unless you name all variables like qListMyList. > >As for comments it's not like

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread André Pönitz
On Thu, Apr 23, 2020 at 12:30:32PM +0300, Ville Voutilainen wrote: > On Thu, 23 Apr 2020 at 12:25, Philippe wrote: > > > > Almost all the time I second your positions, but not this time ;) > > > > QList is historically a cause of ambiguity, and Qt6 is the chance to get > > rid of that. > > Indee

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread André Pönitz
On Thu, Apr 23, 2020 at 10:02:04AM +0200, André Pönitz wrote: > On Thu, Apr 23, 2020 at 07:43:33AM +, Simon Hausmann wrote: > >Hi, > > > >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 > >

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread ekke
I'm using QList in many cases, per ex: C++:   QList myList(); QML:   ListView { ... model: xxx.myList() C++   QVector myList(); getting Error from QML ListView: Unknown method return type: QVector (tested with Qt 5.13.2) perhaps I misunderstood something or will QML in Qt6 have no problems

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Edward Welbourne
André Pönitz (23 April 2020 10:52) > "vector" in this context is a misnomer. It does not "carry" something > from one place to another, It is a container, in which values are carried from one piece of code to another. The same can, of course, be said of every container. However, that's all that

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Daniel Engelke
I wouldn't treat that "List" as type information but rather as "container of objects" or simply "multiple objects". Otherwise all functions would need type information in them aka "isActive()" becomes "isActiveBool()". Dan From: Jaroslaw Kobus To: André Somers , "development@qt-projec

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Mitch Curtis
> -Original Message- > From: Development On Behalf Of > André Somers > Sent: Thursday, 23 April 2020 12:04 PM > To: Jaroslaw Kobus ; development@qt-project.org > Subject: Re: [Development] Proposal: Deprecate QVector in Qt 6 > > Hi, > > On 23-04-20 11:58, Jaroslaw Kobus wrote: > > There

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Elvis Stansvik
Den tors 23 apr. 2020 kl 11:45 skrev Laszlo Agocs : > > That depends on the number of the functions affected, and how commonly those > are used. If we are talking about just a few virtual functions here and there > which are not expected to be overriden by a vast majority of applications > (such

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Daniel Engelke
> You'd need also adapt some variable and function names,  > comments and documentation are silently broken.  I don't really see it, unless you name all variables like qListMyList. As for comments it's not like the logical meaning changes. Besides, QList will have QVectors implementation anyway

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread André Somers
Hi, On 23-04-20 11:58, Jaroslaw Kobus wrote: There are cases, where the name of the function contains the "list", like: QList QMdiArea::subWindowList(QMdiArea::WindowOrder order = CreationOrder) const; QList > QGraphicsItemAnimation::translationList() const; QList QLowEnergyAdvertisingParamet

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Jaroslaw Kobus
There are cases, where the name of the function contains the "list", like: QList QMdiArea::subWindowList(QMdiArea::WindowOrder order = CreationOrder) const; QList > QGraphicsItemAnimation::translationList() const; QList QLowEnergyAdvertisingParameters::whiteList() const; etc... So, subWindowLis

[Development] [Announce] Qt Creator 4.12 released

2020-04-23 Thread List for announcements regarding Qt releases and development
We are happy to announce the release of Qt Creator 4.12! https://www.qt.io/blog/qt-creator-4.12-released -- Eike Ziller Principal Software Engineer The Qt Company GmbH Erich-Thilo-Straße 10 D-12489 Berlin eike.zil...@qt.io http://qt.io Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho S

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread André Pönitz
On Thu, Apr 23, 2020 at 10:52:07AM +0200, Daniel Engelke wrote: >I don't see a lot of work in string replacing QList with QVector and >QStringList with whatever it would be, as long as the API is >compatible. A proper replacing is not done by replacing one type by another. You'd need

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Giuseppe D'Angelo via Development
On 4/23/20 10:55 AM, Simon Hausmann wrote: So take for example this function in QIconEngine: virtual QList availableSizes(QIcon::Mode mode = Icon::Normal, QIcon::State state = QIcon::Off) const; If we change that to QVector, we require our users to clutter their code base with #ifdefs. If we

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread André Pönitz
On Thu, Apr 23, 2020 at 10:06:07AM +0200, Albert Astals Cid via Development wrote: > El dijous, 23 d’abril de 2020, a les 9:43:33 CEST, Simon Hausmann va escriure: > > Hi, > > > > In dev we've had QVector being an alias for QList for a while now. For the > > 6.0 release this particular topic (QLi

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread André Pönitz
On Thu, Apr 23, 2020 at 07:43:33AM +, Simon Hausmann wrote: >Hi, > >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): > >(1) Use the same type throughout the

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Ville Voutilainen
On Thu, 23 Apr 2020 at 12:25, Philippe wrote: > > Almost all the time I second your positions, but not this time ;) > > QList is historically a cause of ambiguity, and Qt6 is the chance to get rid > of that. Indeed. QList causes confusion for the uninitiated that are aware of the differences bet

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Albert Astals Cid via Development
El dijous, 23 d’abril de 2020, a les 10:27:15 CEST, Simon Hausmann va escriure: > Hi Dmitriy, > > No, this is not an April's Foolk joke. > > Previous discussions were largely centred around the implementations and > bringing them together. With this thread my concern is the API and the > churn o

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread André Somers
Hi Simon, On 23-04-20 10:55, Simon Hausmann wrote: Hi, So take for example this function in QIconEngine: virtual QList availableSizes(QIcon::Mode mode = Icon::Normal, QIcon::State state = QIcon::Off) const; If we change that to QVector, we require our users to clutter their code base with

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Laszlo Agocs
That depends on the number of the functions affected, and how commonly those are used. If we are talking about just a few virtual functions here and there which are not expected to be overriden by a vast majority of applications (such as the QIconEngine example), then changing the signatures is

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Simon Hausmann
Hi, Ah yes, I'm suggesting to keep the implementation in Qt 6, so: Qt 6 QList == Qt 6 QVector and deprecate Qt 6 Vector. Or differently put: Currently: template class QVector { $(implementation to be moved) } template using QList = QVector; Proposed: template using QVecto

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Fabian Kosmale
Hi, I don't see the issue with the search&replace with virtual functions. In Qt 5, those use QList, so our users will use it there too. In Qt 6, we change it to QVector, but as QList is an alias of QVector in Qt 6, the user's code (still using QList) will still work just fine. Am I missing some

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Philippe
Almost all the time I second your positions, but not this time ;) QList is historically a cause of ambiguity, and Qt6 is the chance to get rid of that. Philippe On Thu, 23 Apr 2020 07:53:04 + Lars Knoll wrote: I’ve had similar thoughts lately as well. I can see a few more reasons to keep

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Shawn Rutledge
> On 2020 Apr 23, at 10:27, Simon Hausmann wrote: > > Hi Dmitriy, > > No, this is not an April's Foolk joke. > > Previous discussions were largely centred around the implementations and > bringing them together. With this thread my concern is the API and the churn > our users would have to a

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Simon Hausmann
Hi, So take for example this function in QIconEngine: virtual QList availableSizes(QIcon::Mode mode = Icon::Normal, QIcon::State state = QIcon::Off) const; If we change that to QVector, we require our users to clutter their code base with #ifdefs. If we keep it with QList but use QVector i

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Albert Astals Cid via Development
El dijous, 23 d’abril de 2020, a les 10:23:21 CEST, Simon Hausmann va escriure: > Hi, > > Yes, apologies, QList is an alias for QVector. I propose to switch that > around. But keeping which implementation? I.e. it's not clear if you are suggesting to make Qt6 QList == Qt5 QVector and deprec

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Simon Hausmann
Hi, 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. I think we'd do our users a favour by sticking to QList - I'm not concerned about th

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Daniel Engelke
Hi Simon, I think having a name that is close to the standard is very important as it makes it easy to find the Qt counterpart. Back in the days I had to ask a StackOverflow question to find Qts unique_ptr (QScopedPointer), because I couldn't find it due to the naming. Dmitriy also has a very

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Laszlo Agocs
-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

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Simon Hausmann
Hi Dmitriy, No, this is not an April's Foolk joke. Previous discussions were largely centred around the implementations and bringing them together. With this thread my concern is the API and the churn our users would have to apply to their code base in order to use Qt 5 and Qt 6. Simon __

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Simon Hausmann
Hi, Yes, the "proximity" of QVector to std::vector is on argument in favour of it. However I'm not certain that that's worth giving up on the goal of making it easy to maintain a code base between 5 and 6 with a consistent API in Qt. At the end of the day we serve our users 🙂 That said, what d

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Simon Hausmann
Hi, Yes, apologies, QList is an alias for QVector. I propose to switch that around. Simon From: Development on behalf of Albert Astals Cid via Development Sent: Thursday, April 23, 2020 10:16 To: development@qt-project.org Subject: Re: [Development] Proposal

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Jaroslaw Kobus
+1 for QList. (6) No need to remane QStringList into QStringVector for consistency reasons. Jarek From: Development on behalf of Lars Knoll Sent: Thursday, April 23, 2020 9:53 AM To: Simon Hausmann Cc: Qt development mailing list Subject: Re: [Developm

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Albert Astals Cid via Development
El dijous, 23 d’abril de 2020, a les 9:43:33 CEST, Simon Hausmann va escriure: > Hi, > > In dev we've had QVector being an alias for QList for a while now. It's the other way around, isn't it? corelib/tools/qcontainerfwd.h: template using QList = QVector; Cheers, Albert -- Albert Astals Ci

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Albert Astals Cid via Development
El dijous, 23 d’abril de 2020, a les 9:43:33 CEST, Simon Hausmann va escriure: > Hi, > > 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): > > (1) Use the same type throughout the

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Dmitriy Purgin
Hi Simon, I hope it's not a belated April's Fool joke? As far as I can remember, for the past few years, one would read everywhere to switch to QVector from QList because of this and that, and to choose QVector as the default choice container instead of QList like it was back in the days. I can't

Re: [Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Lars Knoll
I’ve had similar thoughts lately as well. I can see a few more reasons to keep QList as the name of the class: (3) Less ambiguity with QVector(2/3/4)D (4) QList is the known type and the one promoted in our API so far, so no need for people to re-learn Qt (5) a lot less code churn for us and our

[Development] Proposal: Deprecate QVector in Qt 6

2020-04-23 Thread Simon Hausmann
Hi, 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): (1) Use the same type throughout the public API of Qt. (2) Make it easy for our users to maintain a code base that works wi