diff --git a/src/support/qstring_helpers.cpp b/src/support/qstring_helpers.cpp index 19cac062fb..bb800f3c67 100644 --- a/src/support/qstring_helpers.cpp +++ b/src/support/qstring_helpers.cpp @@ -57,7 +57,7 @@ QString toqstr(docstring const & ucs4) QString toqstr(char_type ucs4) { #if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) - return QString::fromStdU32String(std::u32string(ucs4, 1)); + return QString::fromStdU32String(std::u32string(1, ucs4)); #else union { char_type c; uint i; } u = { ucs4 }; return QString::fromUcs4(&u.i, 1);