Using QScript is it possible to create, repeatedly update and then destroy a message box (or similar). I would like to create a progress indicator.
Thanks
Allan
Using QScript is it possible to create, repeatedly update and then destroy a message box (or similar). I would like to create a progress indicator.
Thanks
Allan
If you can work with a single progress dialog, then the easiest way is to create an instance and export it to QtScript using QScriptEngine::newQObject().
Might need a sub class of QProgressDialog so you can call a method that processes events while the script is running, or additionally export a function that does that.
If you need the script to be able to create instance of the progress dialog, then it gets a bit more complicated but not a lot.
Cheers,
_
Thanks - but I dont have access to the source for the project, just the QScript module - so that sounds like a no.
Unless ther are any other options
Allan
In this case you are out of luck.
QtScript can only access functionality that the host application has exported.
Cheers,
_
I thought that would be the case.
Thanks for taking the time to comment.
Allan
Bookmarks