QT program starts automatically