Results 1 to 3 of 3

Thread: Simple QThread class and QObject::moveToThread() - questions

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    315
    Thanked 53 Times in 51 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Simple QThread class and QObject::moveToThread() - questions

    1. Never ever move thread to it self! Moving QObject to thread means that connected (see Qt::ConnectionType-enum) slots will be run in thread they were move to!
    2. moveToThread works only when object doesn't have a parent! See QObject::moveToThread
    3. Read this

  2. #2
    Join Date
    Nov 2010
    Location
    Zawiercie, Poland
    Posts
    12
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Simple QThread class and QObject::moveToThread() - questions

    Thank you for your post.

    Third answer has me thinking. So now I have to redesign my class and read once again docs and tutorials carefully.

    Thanks.

Similar Threads

  1. Simple QObject::connect question
    By Bryku in forum Newbie
    Replies: 2
    Last Post: 8th January 2010, 12:09
  2. QThread/QObject and QTimer
    By swiety in forum Qt Programming
    Replies: 2
    Last Post: 25th January 2008, 08:37
  3. QObject::moveToThread warning
    By mnemonic_fx in forum Qt Programming
    Replies: 3
    Last Post: 10th August 2007, 22:11
  4. qobject connect questions
    By VireX in forum Newbie
    Replies: 5
    Last Post: 20th May 2007, 09:04
  5. QObject::moveToThread() warnings
    By gri in forum Qt Programming
    Replies: 9
    Last Post: 2nd April 2007, 16:46

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.