[Interest] QML and sensitive data

Ulf Hermann ulf.hermann at qt.io
Thu Sep 5 14:44:55 CEST 2019

> Cheap hack #1: assign both fields new values once validated, say "*****" 
> and force screen update before navigating away.

No. Strings are immutable in QML (and JavaScript). The old string will 
still be in memory at that point. And no, it's not a QString. 
const-casting and overwriting from C++ wouldn't do, even if it didn't crash.


More information about the Interest mailing list