[PyQt] QtGui.QSessionManager: Syntax
Chris Giles
chris.g.27 at gmail.com
Sat Dec 15 01:25:36 GMT 2007
>
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20071215/a7860fcf/attachment.html
More information about the PyQt
mailing list