[PyQt] Strange observation

Detlev Offenbach detlev at die-offenbachs.de
Fri Jun 21 17:54:15 BST 2013


Hello,

there was a strange observation reported using eric5. The eric5 PySvn 
plug-in has a dialog to ask the user for a password. This is embedded in 
code like this

        cursor = QApplication.overrideCursor()
        if cursor is not None:
            QApplication.restoreOverrideCursor()
<call the login dialog, could take some time depending upon the user>
        if cursor is not None:
            QApplication.setOverrideCursor(cursor)

Every now and than this code fails with
<class 'RuntimeError'>: 
wrapped C/C++ object of type QCursor has been deleted

What is wrong with my code?

Detlev-- 
*Detlev Offenbach*
detlev at die-offenbachs.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130621/57f663d7/attachment.html>


More information about the PyQt mailing list