QRegExp is deprecated in qt6

Kornel Benko kornel at lyx.org
Wed Feb 22 10:34:49 UTC 2023


Am Mon, 20 Feb 2023 17:47:29 +0100
schrieb Jean-Marc Lasgouttes <lasgouttes at lyx.org>:

> Le 13/02/2023 à 21:29, Richard Kimberly Heck a écrit :
> >>> Indeed! So we should get rid of QRegexp now.  
> >>
> >> Riki, would that be OK? What I have in mind is that whatever bug with 
> >> this newer code will be found earlier if more users are running it.  
> > 
> > Yes, fine with me.
> > 
> > I have been waiting to talk about next steps until we have some idea 
> > what to do about the shortcut problem on OSX. That seems a large issue.  
> 
> This patch removes all traces of QRegExp. It will obviously need 
> testing, but this is already the code used with Qt6.
> 
> What I do not know is whether we can get rid of QtCore5Compat library. 
> Is it useful for anything beyond QRegExp?
> 
> JMarc

With CMake build I get 
/usr2/src/lyx/lyx-git/src/frontends/qt/GuiKeySymbol.cpp:28:10: fatal error: QTextCodec:
No such file or directory 28 | #include <QTextCodec>
      |          ^~~~~~~~~~~~
compilation terminated.

if I remove the QtCore5Compat parts.

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20230222/f7086ae6/attachment.asc>


More information about the lyx-devel mailing list