What is the correct way to create a batch process that displays the status in a QMainWindow? There is an ‘engine’ class that will do all the work, then there is a custom QMainWindow that will be along the lines of QProgressDialog, except it will display a bit more status on what is happening.
Since there is going to be a GUI, it is assumed that QCoreApplication::exec() needs to be called once the QMainWindow has been created. The question is: how does the engine get started automatically? Should it be running in a background thread that is started before calling QCoreApplication::exec() and then have it close down the QMainWindow to have QCoreApplication::exec() return?
Any other suggestions?
Sam
↧