begin to implement a auto-running qt app.