Update Qt symbol map usage.

Should fix #5256, not well tested.
Merge pull request #5262 from unknownbrackets/qt-fix

Update Qt symbol map usage