I tried QString::fromUcs4() on my openSUSE and I got a nice lock So it is a Windows-only problem, maybe caused by the font that does not contain this lock glyph.
Using QChar (0x0001F512) created the same empty rectangle as it did on Windows.

Ginsengelf