revisions; note about pending Qt6 port of meshtastic example

This commit is contained in:
pls.153 2024-03-09 19:43:18 +01:00
parent eb9612b17f
commit 1a822feb0e
6 changed files with 14 additions and 8 deletions

View file

@ -322,7 +322,11 @@ cl_object qload_rc(cl_object l_file) {
QFile file(toQString(l_file).prepend(":/"));
if (file.open(QIODevice::ReadOnly)) {
QTextStream ts(&file);
#if QT_VERSION < 0x060000
ts.setCodec("UTF-8");
#else
ts.setEncoding(QStringConverter::Utf8);
#endif
QString text = ts.readAll();
file.close();
if (!text.isEmpty()) {