[PyKDE] Pb with QTextDocument.clone()

Phil Thompson phil at riverbankcomputing.co.uk
Thu Aug 17 15:45:55 BST 2006


On Sunday 06 August 2006 11:42 am, Xavier Décoret wrote:
> Hello, the following simple code crashes python under windows. Under
> linux, it randomly crashes but less often. It really sounds like a
> deallocated object problem. I am using Qt4.1.4 with PyQt4.0.1 and Python
> 2.4.
> Am I missing something or should I do a bug report?
>
> from PyQt4.QtCore import *
> from PyQt4.QtGui import *
>
> import sys
>
> app = QApplication(sys.argv)
>
> doc = QTextDocument()
> doc.setHtml("hello")
>
> clo = doc.clone()

I can't reproduce this.

Phil




More information about the PyQt mailing list