[PyKDE] PyBrowser: fix for the segfault

Roberto Alsina ralsina at kde.org
Wed Mar 31 18:35:01 BST 2004

A couple of days ago, I posted my PyBrowser class
(http://www.pycs.net/lateral/stories/17.html) in an answer to a question.

And was told it segfaults. So I tried it. And it does. Here's the fix:

If you comment the qApp.processEvents() in fetchURL() it will not segfault.

However, that means you get no progress reports whatsoever.

I am clueless on how to make both things work. In fact, I don't see why a
processEvents there causes a segfault in QTextCursor or some other bizarre
innard of QTextBrowser :-P

If anyone feels like taking a look, this is actually useful code to have
working :-)

 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  ralsina at kde.org
 (_Y_.)' ._   ) `._`.  " -.-'   KDE Developer (MFCH)
  _..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.'             Buenos Aires - Argentina
Imminentizing the eschaton since 1971.

More information about the PyQt mailing list