PDA

View Full Version : Save a QScriptContext to be reused in a futur session.



LucStPierre
25th July 2012, 20:07
Hi,

I'm using QTScript to generate a lot of QObject that will be re-interacted in the future via other script (to scale them, move them, etc...).

When I save my session I save the QObject that were created via the script, so when a reload my saved file the QScript are not there in my QScriptContext and the other script to interact with do not work anymore.

Is it possible to save a QScriptContext in a file and reuse it in future time ? Or I need to repopulate my object from the QObject "manually".

thanks a lot,
Luc St-Pierre