PyQt disconnect signal / slot

Discussion in 'Python' started by Alexander Eisenhuth, Sep 25, 2007.

  1. Hello PyQt experts,

    do i have to disconnect all signal/slots, after the emitting object is deleted,
    or does it the QObject destructor?

    Thanks
    Alexander
     
    Alexander Eisenhuth, Sep 25, 2007
    #1
    1. Advertising

  2. On Tuesday 25 September 2007, Alexander Eisenhuth wrote:
    > Hello PyQt experts,
    >
    > do i have to disconnect all signal/slots, after the emitting object is
    > deleted, or does it the QObject destructor?


    It's done for you - same as Qt.

    Phil
     
    Phil Thompson, Sep 25, 2007
    #2
    1. Advertising

  3. Phil, thanks for that quick reply

    Phil Thompson schrieb:
    > On Tuesday 25 September 2007, Alexander Eisenhuth wrote:
    >> Hello PyQt experts,
    >>
    >> do i have to disconnect all signal/slots, after the emitting object is
    >> deleted, or does it the QObject destructor?

    >
    > It's done for you - same as Qt.
    >
    > Phil
     
    Alexander Eisenhuth, Sep 25, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Pradnyesh Sawant

    problem with qthread and signal/slot

    Pradnyesh Sawant, Apr 14, 2007, in forum: Python
    Replies:
    0
    Views:
    463
    Pradnyesh Sawant
    Apr 14, 2007
  2. Pradnyesh Sawant

    passing tuple with pyqt4 signal/slot mechanism

    Pradnyesh Sawant, Apr 26, 2007, in forum: Python
    Replies:
    2
    Views:
    332
    Phil Thompson
    Apr 26, 2007
  3. Pradnyesh Sawant

    pyqt4 signal/slot using PyObject* and shortcut

    Pradnyesh Sawant, Apr 27, 2007, in forum: Python
    Replies:
    0
    Views:
    320
    Pradnyesh Sawant
    Apr 27, 2007
  4. Alexander Eisenhuth
    Replies:
    2
    Views:
    867
    Alexander Eisenhuth
    May 29, 2007
  5. Steven Woody

    Event Handling and Signal-Slot Mechanism

    Steven Woody, Jan 19, 2009, in forum: Python
    Replies:
    2
    Views:
    1,066
    Steven Woody
    Jan 20, 2009
Loading...

Share This Page