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

List:       pykde
Subject:    Re: [PyKDE] Listview problem? (segfault)
From:       Paul Felix <pef () fluent ! com>
Date:       2002-07-31 1:46:11
[Download RAW message or body]

Hi Bart,

You might be able to avoid the problem by locking and unlocking the Qt library
mutex when creating each listview item:

  qApp.lock()
  QListViewItem(self.win.ListView1, "bleh")
  qApp.unlock()

This seems to work for me using PyQt 3.3.2 and Qt 3.0.5.

Phil, you advise calling the PyQt API from one thread only.  Do you see any
inherent problem in calling the PyQt API from a second thread if the Qt library
mutex is properly locked/unlocked when doing so?

Paul

> Hellow!
>
> I've adjusted my app like the semaphore thingy.. But still it segfaults...
> I added the new 'version', please take a look at what i'm doing wrong :o(
> Thanks for the help so far, i _REALLY_ appreciate it!
>
> BTW me and my team (well, more my team :o) will probably make the Gentoo Li> nux 
> graphical installer with PyQT :o)
>
> Thanks in advance!

_______________________________________________
PyKDE mailing list    PyKDE@mats.gmd.de
http://mats.gmd.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