Question Details

No question body available.

Tags

c++ qt memory-leaks

Answers (1)

March 13, 2026 Score: 5 Rep: 147 Quality: Low Completeness: 40%

@Friedrich Thank you for the hint! I have checked Qt's bug tracker and found the related issue QTBUG-62663. https://qt-project.atlassian.net/browse/QTBUG-62663

It seems the memory leak is related to string encoding conversion for non-ASCII device names, such as Chinese, Japanese, Russian, etc.

This issue may not occur on English Windows systems because device names use only ASCII characters. It’s very likely that Qt developers only tested on their own English systems and did not cover non-English OS languages during testing.

What’s more, this bug was reported many years ago, but still has NOT been fixed in the latest Qt 5.15.x version, which is why I’m encountering it in Qt 5.15.18.