This is a valid use case and we have previously used this to demonstrate live coding at different occasions.
You can for instance check out a series of youtube videos that Andres Baldwin did showing off Qt 5 on the raspberry Raspberry PI [youtube.com]
In practice that demo is most likely using a Loader and not eval but the implications are of course similar.
Note that Qt will not provide you any form of sandboxing or access control like a web browser would. Any library or function exposed to Qt Quick in your app would also be accessible to the end user so it might be possible that the he would get access to supposedly secret things like app tokens or other users personal data. It all comes down to how your application is designed though.
↧