PDA

View Full Version : Message Box in Qscript



tsrplatelayer
8th March 2015, 14:27
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

anda_skoa
9th March 2015, 08:43
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,
_

tsrplatelayer
9th March 2015, 12:58
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

anda_skoa
9th March 2015, 13:27
In this case you are out of luck.
QtScript can only access functionality that the host application has exported.

Cheers,
_

tsrplatelayer
9th March 2015, 15:02
I thought that would be the case.

Thanks for taking the time to comment.

Allan