Important: Please read the Qt Code of Conduct -

windowFlags SplashScreen error on exit

  • Qt4.8 PyQt4.9 windows7
    Hi everyone!
    I'm using


    for main window of my project, to not showing app in taskbar.
    To close my app I rewrite keyPressEvent:

    def keyPressEvent(self, event):
            if (event.modifiers() == QtCore.Qt.ControlModifier) & (event.key() == QtCore.Qt.Key_Q):

    In Ubuntu it works well, but in windows it's not terminate the main process.
    When I press Ctrl+Q it close my app, and gui is disappears but the terminal is still busy. The PyCharm tells me that the process is still running.
    Without flag SplashScreen the app exits well.
    What I'm doing wrong? How to close the app with SplashScreen flag and terminate main process (thread)?

  • I figured out by myself
    I use QApplication.quit and app exits well

Log in to reply