On newer versions of Qt Qt::SystemLocaleShortDate is deprecated, I replaced it with a function that builds the format string using QLocale.
As for the regex string - the compiler tried to interpret \. as a C++ character escape. I suspect the intention here was to actually match three . characters at the end of the line. To do this, you need to escape the backslashes in the C++ code.
Tested on Fedora with Qt 5.15.6, but also compiled successfully on Ubuntu 20.04 with Qt 5.12.8.
On newer versions of Qt
Qt::SystemLocaleShortDate
is deprecated, I replaced it with a function that builds the format string usingQLocale
.As for the regex string - the compiler tried to interpret
\.
as a C++ character escape. I suspect the intention here was to actually match three.
characters at the end of the line. To do this, you need to escape the backslashes in the C++ code.Tested on Fedora with Qt 5.15.6, but also compiled successfully on Ubuntu 20.04 with Qt 5.12.8.