[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] PyBrowser: fix for the segfault
From:       "Roberto Alsina" <ralsina () kde ! org>
Date:       2004-03-31 16:48:17
Message-ID: 3969.200.69.193.205.1080751697.squirrel () linux ! netline ! com ! ar
[Download RAW message or body]


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@kde.org
 (_Y_.)' ._   ) `._`.  " -.-'   KDE Developer (MFCH)
  _..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.'             Buenos Aires - Argentina
Imminentizing the eschaton since 1971.

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic