Results 1 to 8 of 8

Thread: when can I delete a thread?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Dec 2008
    Location
    Poland
    Posts
    383
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Android
    Thanks
    52
    Thanked 42 Times in 42 Posts

    Default Re: when can I delete a thread?

    Simple example and two errors... eh.
    I tested this code and It didn't crash application, so I'm a little bit confused about that.
    Please correct me, as I'm self taught and can misunderstand some aspect of signal/slot mechanism.
    I use disconnect to ensure that object is not connected to anything before delete, and at that point object should have no connection, and then simply delete the object, so the slot is not wired to anything and AFAIK should be treat as function (this is how I understand it from the docs, so probably I understand it wrong).

    Also I just look at the qcoreapplication.cpp post event (because logically there must be the difference between delete and deletelater()), that is executed with deletelater() and from what I can understand:
    when I use delete object, I delete only the object and event are still in mem.?
    when deletelater() is used, I delete not only the object but also all the events associated with this object?
    Or I'm completely mistaken with this?
    Last edited by Talei; 11th September 2010 at 00:57. Reason: spelling corrections
    In the near future - corporate networks reach out to the stars. Electrons and light flow throughout the universe.
    The advance of computerization however, has not yet wiped out nations and ethnic groups.

Similar Threads

  1. Replies: 4
    Last Post: 19th February 2009, 11:10
  2. delete my thread
    By Dmitry in forum Qt Programming
    Replies: 1
    Last Post: 15th October 2006, 17:42

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.