> > Thats all wrong. You are supposed to override saveState and commitData > in your own QApplication subclass. > > As Phil already said: You're not supposed to create a QSessionManager, > just to provide code that stores that state of your application.
Thanks Phil and Andreas. I've taken a closer look and don't think my application will need "commitData". It will possibly need "saveState", but the documentation doesn't explain how to implement this function and I can't find any examples via a web search either. If anyone already has working example PyQt4 code that handles session management, please send it to me. Until that happens, it's looking a bit too painful. Instead, I've just instructed my application to stick a temporary link to itself in the "~/.kde/Autostart/" directory. This will be okay since I don't need to store any session-specific info.
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
