<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The same syntax I guess. PyQt4 is nothing else than Qt4, but with python<br>syntax rather than C++. So just translate the C++ specific language
<br>things into the Python language equivalent and it'll work. In<br>particular that page says you should override commitData() and<br>saveState() not call it.<br></blockquote></div><br>Thanks for the reply. I don't think the same syntax will work in this case because "
<span>QSessionManager" can't be instantiated or sub-classed in PyQt4.</span> Again, here's what I've tried:<br><ul><li><span>QtGui.QApplication.saveState( QtGui.QSessionManager() )</span>
</li><li><span>aMain.saveState( QtGui.QSessionManager() )</span></li><li><span>smCurrent = QtGui.QSessionManager()</span></li></ul><span>The error message I receive in each case is as follows.
<br></span><ul><li><span> TypeError: QtGui.QSessionManager cannot be instantiated or sub-classed</span></li></ul>I don't know of any other way to call or use "<span>QSessionManager" in PyQt4, so I'm wondering if someone else has and knows the exact (PyQt4) syntax. In other words, I'm looking for someone who knows how to overcome the above error message or who has used "
</span><span>QSessionManager" specifically in PyQt4 successfully.</span><br><span><br></span>