Results 1 to 20 of 30

Thread: QThread exec proplem to stop...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QThread exec proplem to stop...

    Quote Originally Posted by marcel View Post
    It will finish, but only if he calls quit() outside the thread ...
    It probably won't emit finished() then.

    Oh, BTW QThread::quit() is not virtual, neither is exit.
    Every slot is "implicitely" virtual if redeclared in a subclass. That's a side effect of how signals and slot mechanism works.

    So I'm not sure how correct it is to reimplement it. Anyway, if qt uses your class, it will call the base class version.
    No, it'll call the "youngest" implementation that has been declared as a slot. Of course this only applies to a situation when the method is called as a result of signal emission and not directly.

  2. The following user says thank you to wysota for this useful post:

    marcel (20th May 2007)

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.