must register variant for QList<QString> before using QSettings

This commit is contained in:
Axel Kohlmeyer
2024-08-27 21:19:09 -04:00
parent 99e5b06279
commit 932eaf864a
2 changed files with 5 additions and 5 deletions

View File

@ -30,6 +30,11 @@
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(lammpsgui);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
// register QList<QString> only needed for Qt5
qRegisterMetaTypeStreamOperators<QList<QString>>("QList<QString>");
#endif
QApplication app(argc, argv);
// enforce using the plain ASCII C locale within the GUI.
QLocale::setDefault(QLocale::c());