<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Thats all wrong. You are supposed to override saveState and commitData<br>in your own QApplication subclass.
<br><br>As Phil already said: You're not supposed to create a QSessionManager,<br>just to provide code that stores that state of your application.</blockquote><div><br>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.
<br><br>If anyone already has working example PyQt4 code that handles session management, please send it to me.<br><br>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.
<br><br></div></div>