QRegExp is deprecated in qt6

Jean-Marc Lasgouttes lasgouttes at lyx.org
Thu Mar 2 16:41:08 UTC 2023


Le 02/03/2023 à 17:17, Scott Kostyshak a écrit :
>> 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.
> 
> Indeed it seems we need to adapt, and that QStringConverter looks like a candidate:
> 
>    https://forum.qt.io/topic/135724/qt-6-replacement-for-qtextcodec
>    https://embeddeduse.com/2021/01/17/migrating-a-harvester-hmi-from-qt-5-12-to-qt-6-0/
> 
> Luckily it seems that GuiKeySymbol is the only code that uses QTextCodec.

Thanks for checking, Scott. So there is still a bit of work to do. In 
this case, it seems that QStringConverter is not supported by Qt5, so 
some #ifdefs might be required.

JMarc





More information about the lyx-devel mailing list