View Single Post
MSameer's Avatar
Posts: 598 | Thanked: 1,736 times | Joined on Feb 2008 @ Helsinki
Originally Posted by Sfiet_Konstantin View Post
I explored this before. However, QML files embedded in binaries are sometimes optimized so that they are not in plain text anymore. (use a qrc to compile several QML files in release mode and use strings)

EDIT: or do you want to do that in runtime ?
They are compressed AFAICT but not optimized but it's trivial to decompress them.

If we have an LD_PRELOAD that can get access to the actual QML data (I don't yet know how) then we can capture the data, modify it and return the modified data to the QML "compiler". It's not resource intensive. I have done something similar in a Qt4 app of mine (replace certain strings during runtime in the embedded QML files). Don't ask me why I did that

EDIT: One advantage for patching during runtime is we can tie the patches to a certain OS release easily.
We need a coffee machine that doesn't ask for coffee beans every 10 hours

Last edited by MSameer; 2014-03-26 at 21:51.

The Following 5 Users Say Thank You to MSameer For This Useful Post: