[PyKDE] QtEvent
Carles Pina i Estany
carles at pina.cat
Fri Oct 27 21:03:08 BST 2006
Hi!
I am porting an appliation from Python and Qt 3.x to Qt 4.x.
In the previous application, to communicate from one thread to another one I
have:
def sendInformation(id,s,gui):
event = QEvent(id)
event.setData(s)
QApplication.postEvent(gui,event)
Very simple and usefull.
In the new Qt version it seems that I have to subclass from QEvent to do the
same. I have done some tests without good result.
I wonder if somebody here has done it and has some example, so I will not need
to investigate a lot :-) else, tomorrow I will try again and show the
problems...
Thanks!
--
Carles Pina i Estany GPG id: 0x8CBDAE64
http://pinux.info Manresa - Barcelona
More information about the PyQt
mailing list