add missing flush operation
extend from QApplication