[Development] Qt UDL operators

Sona Kurazyan sona.kurazyan at qt.io
Mon Apr 4 14:55:44 CEST 2022


Following Thiago's advice, updated https://codereview.qt-project.org/c/qt/qtbase/+/401604/ to enable the warning only after N+4 minor release of Qt (i.e. 6.8). That should give more time for updating the existing code.

Best regards,
Sona

> -----Original Message-----
> From: Development <development-bounces at qt-project.org> On Behalf Of
> Thiago Macieira
> Sent: Sunday, April 3, 2022 4:05 PM
> To: development at qt-project.org
> Subject: Re: [Development] Qt UDL operators
> 
> On Saturday, 2 April 2022 07:46:33 PDT Kai Köhne wrote:
> > If you use the "Qt Quick Application" wizard in any recent Qt Creator,
> > and selected a Qt 6 version as minimally required version, the
> > generated main.cpp code will contain code like
> >
> >   const QUrl url(u"qrc:/myproject/main.qml"_qs);
> >
> > Deprecating the u""_qs will mean that we break the most basic user
> > 'hello world' projects utilizing this wizard. I therefore think it's
> > too late to deprecate u""_qs any time soon.
> 
> It'll have to be a multi-year process then.
> 
> Step 1) stop generating this for new code
> 
> Step 2) 2 years later, add the warning of deprecation (the actual code change
> can be done now, with the warning enabled for the N+4 minor release of Qt)
> 
> 
> --
> Thiago Macieira - thiago.macieira (AT) intel.com
>   Software Architect - Intel DPG Cloud Engineering
> 
> 
> 
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> https://lists.qt-project.org/listinfo/development


More information about the Development mailing list