QRegExp is deprecated in qt6

Scott Kostyshak skostysh at lyx.org
Sun Feb 12 20:08:06 UTC 2023


On Sun, Feb 12, 2023 at 08:54:48PM +0100, Lorenzo Bertini wrote:
> Il 12/02/23 20:53, Scott Kostyshak ha scritto:
> > On Sun, Feb 12, 2023 at 08:46:31PM +0100, Lorenzo Bertini wrote:
> > > Dear list,
> > > 
> > > trying to compile with --enable-qt6 gives the following error:
> > > 
> > > > qstring_helpers.cpp:21:10: fatal error: QRegExp: File o directory non esistente
> > > >     21 | #include <QRegExp>
> > > >        |          ^~~~~~~~~
> > > 
> > > In the page https://doc.qt.io/qt-6/qregexp.html it says:
> > > 
> > > > This class is deprecated in Qt 6. Please use QRegularExpression instead for all new code
> > > 
> > > What can be done to help?
> > 
> > Hi Lorenzo,
> > 
> > Which version or Git hash are you trying to compile?
> > 
> > Scott
> 
> 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?

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230212/bba39440/attachment.asc>


More information about the lyx-devel mailing list