Re: [PyQt] the mechanism behind qt signal and slot

2010-09-20 Thread Sathishkumar Duraisamy
hi The following is an extract from the book Foundations of Qt Development by Johan Thelin. This explains how signal is implemented in Qt. Thanks Mr.Johan Thelin. Signals and slots are implemented by Qt using function pointers. When calling emit with the signal as argument, you actually call

Re: [PyQt] the mechanism behind qt signal and slot

2010-09-19 Thread Algis Kabaila
On Sunday 19 September 2010 17:41:59 Von wrote: Hi,Algis, I have looked through this chapter Events, the Clipboard, and Drag and Drop, and I couldn't find anything about signal/slot mechanism. Best Regards Ch 10 does not talk about Signals-Slots directly, but it tells the details about the

Re: [PyQt] the mechanism behind qt signal and slot

2010-09-19 Thread Algis Kabaila
On Sunday 19 September 2010 17:41:59 Von wrote: Hi,Algis, I have looked through this chapter Events, the Clipboard, and Drag and Drop, and I couldn't find anything about signal/slot mechanism. Just another note: in the book on p.129 older style syntax signal/slot representation is stated and

Re: [PyQt] the mechanism behind qt signal and slot

2010-09-19 Thread Algis Kabaila
On Sunday 19 September 2010 17:41:59 Von wrote: Hi,Algis, I have looked through this chapter Events, the Clipboard, and Drag and Drop, and I couldn't find anything about signal/slot mechanism. http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#new-style-

Re: [PyQt] the mechanism behind qt signal and slot

2010-09-19 Thread Andreas Pakulat
On 19.09.10 18:18:15, Algis Kabaila wrote: On Sunday 19 September 2010 17:41:59 Von wrote: Hi,Algis, I have looked through this chapter Events, the Clipboard, and Drag and Drop, and I couldn't find anything about signal/slot mechanism. Best Regards Ch 10 does not talk about

Re: [PyQt] the mechanism behind qt signal and slot

2010-09-19 Thread Von
Hi,Algis,many thanks for all these informations. At first I thought QtCore.QtObject.connect as static method of QtObject,later I realized that,this is py style of calling super method. That's why I asked question (3). The document of pyqt says The code (or component) that emits the signal does not

Re: [PyQt] the mechanism behind qt signal and slot

2010-09-19 Thread Andreas Pakulat
On 19.09.10 20:58:56, Algis Kabaila wrote: On Sunday 19 September 2010 19:54:54 Andreas Pakulat wrote: Ch 10 does not talk about Signals-Slots directly, but it tells the details about the lower level events. It is the same and one mechanism as Signals- Slots, it is just that it is

Re: [PyQt] the mechanism behind qt signal and slot

2010-09-19 Thread Algis Kabaila
On Monday 20 September 2010 04:03:44 Andreas Pakulat wrote: That's true, but what happens if the slot does not handle the signal? This cannot happen. A signal-slot connection is a direct (or indirect) function call. So if you emit a signal _all_ connected slots will be executed, always

Re: [PyQt] the mechanism behind qt signal and slot

2010-09-19 Thread Von
Many thanks,Andreas. On Mon, Sep 20, 2010 at 2:09 AM, Andreas Pakulat ap...@gmx.de wrote: On 19.09.10 18:15:15, Von wrote: Hi,Algis,many thanks for all these informations. At first I thought QtCore.QtObject.connect as static method of QtObject,later I realized that,this is py style of

[PyQt] the mechanism behind qt signal and slot

2010-09-18 Thread Von
Hi, There are three Objects related to one signal to slot event. 1, the signal generator 2,the slot trigger 3,qtObject who connect these two together. I am wondering how things happening behind the scene. Where does the signal first fire and how it passed to the slot? What's the responsibility