[Development] 回复: Asking for a FF exception for ICU based QStringConverter

Zhang JiDe zccrs at live.com
Fri Jun 10 05:20:56 CEST 2022

This case is very complicated. In actual we often expect to get an app_compile_version with the smallest version number. In the above case, it should be 6.3, but the existing code cannot do it. If we have a better way then we can rewrite it, but the current implementation should be removed anyway, I approve this patch.

发件人: Development <development-bounces at qt-project.org> 代表 Thiago Macieira <thiago.macieira at intel.com>
发送时间: 2022年6月9日 19:47
收件人: development at qt-project.org <development at qt-project.org>
主题: Re: [Development] Asking for a FF exception for ICU based QStringConverter

On Thursday, 9 June 2022 12:36:25 PDT Alexander Akulich wrote:
> On Thu, Jun 9, 2022 at 10:14 PM Thiago Macieira
> <thiago.macieira at intel.com> wrote:
> > Doesn't work for libraries.
> Can you explain please?

Libraries don't call QCoreApplication's constructor.

The application may have been recompiled and thus will inform QCoreApplication
it was compiled against 6.4, but the library in question (a KF6 one) may have
still been compiled against 6.3.

> I see this correspond to 5.0.0 until
> QCoreApplication constructor called but I thought it would be 'better
> than a leak'.
> QCoreApplicationPrivate::app_compile_version is a part of QtCore, so
> even if it won't work *across* the libraries, it is still available
> for QStringConverter because it is a part of the same library.

Wrong tool for the job, as explained above. Removing in:

In any case, I'll not make a runtime decision based on version. It's much
easier to make a static decision based on which function you called.

Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering

Development mailing list
Development at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20220610/5c8745ad/attachment-0001.htm>

More information about the Development mailing list