I am new to python and pyqt, I learn them today and write a small system tray demon, it run , but when i click \"about\", and then close the dialog, the app exit. I don\'t know
You can set the application quitOnLastWindowClosed property to False:
def main(): app = QtGui.QApplication(sys.argv) app.setQuitOnLastWindowClosed(False) trayIcon = SystemTrayIcon(QtGui.QIcon("trash.svg")) trayIcon.show() sys.exit(app.exec_())