[Development] Asking for a FF exception for ICU based QStringConverter

Lars Knoll lars.knoll at qt.io
Thu Jun 9 19:21:23 CEST 2022



> On 9 Jun 2022, at 19:16, Alexander Akulich <akulichalexander at gmail.com> wrote:
> 
> Hi everyone,
> 
> On Wed, Jun 8, 2022 at 5:18 PM Fabian Kosmale <fabian.kosmale at qt.io> wrote:
>> 
>> What remains to be done:
>> - There are concerns that mixing Qt versions might lead to an unbounded memory leak with the current implementation.
> 
> I can't find any precedent but if we *really* want then probably we
> can get the "compiled with" Qt version from QCoreApplication
> (QCoreApplicationPrivate::app_compile_version).
> 
> 1. Allocate the resources only if the version >= 6.4.0
> 2. Probably add a "TODO: remove me" in 6.x.0 (e.g. after the next LTS)

Nice idea. I could live with that solution. Only allocate the new codecs if Qt was compiled against 6.4.0 or greater, and if the app was compiled against an earlier version, simply return an invalid codec.

Cheers,
Lars



More information about the Development mailing list