<span class="gmail_quote"></span><br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> I want to use "QSessionManager" in my PyQt4 application, so that it will be
<br>> reloaded when the user logs back into KDE. I've tried all of the following
<br>> without success.<br>><br>> - QtGui.QApplication.saveState ( QtGui.QSessionManager() )<br>> - aMain.saveState( QtGui.QSessionManager() )<br>> - smCurrent = QtGui.QSessionManager()<br>><br>
> The error message I receive in each case is as follows.
<br>><br>> - TypeError: QtGui.QSessionManager cannot be instantiated or<br>> sub-classed<br>><br>> I searched on the web for this but found nothing of much use. Can someone<br>> please explain how to use "QSessionManager" from within a PyQt4
<br>> application?<br><br><a href="http://doc.trolltech.com/4.3/session.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://doc.trolltech.com/4.3/session.html</a></blockquote><div><br>Thanks, that tells me how to do it in Qt4. What I also need is for someone to explain how to do it in PyQt4, since "QSessionManager cannot be instantiated or sub-classed", as noted above.
<br><br>At some stage, it's looking like I'll need to use "QSessionManager" and none of the above methods work in PyQt4. I'm hoping someone can supply me with syntax that will work in PyQt4, rather than Qt4.
<br><br>If I'm missing the point here, feel free to slap me around with a frozen trout or preferred substitutionary implement :-).<br><br></div></div>