QRegExp is deprecated in qt6

Jean-Marc Lasgouttes lasgouttes at lyx.org
Mon Feb 13 10:58:29 UTC 2023


Le 12/02/2023 à 22:04, Scott Kostyshak a écrit :
> On Sun, Feb 12, 2023 at 09:35:19PM +0100, Jean-Marc Lasgouttes wrote:
>> Le 12/02/2023 à 21:08, Scott Kostyshak a écrit :
>>>> Master branch
>>>
>>> I see. Indeed it seems there's still instances of it. I wonder if in
>>> earlier Qt 6 versions it was a warning so that is why it used to work?
>>
>> Is there a reason why we could not get rid of QRegExp now that Qt4 is gone?
> 
> I think someone just has to do the work. For example, 635a7d77 suggests
> that it is not trivial.

The example we see here is in support/qstring_helpers.cpp. It should be 
trivial enough.

What I do not know though is whether
1/ there are other places
2/ QRegularExpression is good enough with early Qt5 version (not that we 
care much about them, actually).

JMarc



More information about the lyx-devel mailing list