[Development] QString and related changes for Qt 6
lars.knoll at qt.io
Wed May 13 08:29:34 CEST 2020
> On 13 May 2020, at 08:14, André Somers <andre at familiesomers.nl> wrote:
> On 12-05-20 22:42, Thiago Macieira wrote:
>> QStringView::mid(), for example, returns QStringView, but QString::mid()
>> returns QString.
> _Should_ QString::mid be returning a QString though? Perhaps it should return a QStringView?
That’s a separate question, but I agree it’s something we should investigate. Most likely it would break a large amount of code however (mid() being a methods that’s extremely widely used).
More information about the Development