engine derives now from QObject

eventloop is called by timer.