[Development] HEADS-UP: QStringLiteral

Sérgio Martins sergio.martins at kdab.com
Wed Aug 21 14:13:39 CEST 2019


On 2019-08-20 16:56, Bogdan Vatra via Development wrote:
> Hi,
> 
>   Isn't silly to have so many wrappers around a such a simple thing as
> strings? All the major frameworks out there (i.e. Java, C#) they have a 
> single
> String which does all the magic.

We do have a single one that does all the magic: QString. A Qt user can 
ignore all others.

The difference between Qt and Java or C# is that we also offer 
non-allocating alternatives for users who care. And if they care, they 
need to learn them.

For the case that triggered this discussion, the androiddeployqt 
executable, I wouldn't bother with optimizations and just use what's 
more readable, even raw strings.



Regards,
-- 
Sérgio Martins | sergio.martins at kdab.com | Senior Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - The Qt, C++ and OpenGL Experts



More information about the Development mailing list