Results 1 to 4 of 4

Thread: QObject::moveToThread warning

  1. #1
    Join Date
    Mar 2007
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default QObject::moveToThread warning

    Dear All,

    I've experienced a problem when I link the Mac OS X application to Qt as frameworks.
    I followed the documentation "Deploying an Application on Qt/Mac".

    After I link it, this qWarning comes out :

    QObject::moveToThread: Current thread (0x5e23a50) is not the object's thread (0x5e072f0).
    Cannot move to target thread (0x5e072f0)

    I'm not sure which object (obviously lives in main thread) that is moved to which thread.
    Since I'm not experiencing this, before I link the application to Qt, and copy necessary resources.
    But I assume it's a QtGui object, because it came out once a QMainWindow object / QDialog is created.

    I suspect this is related to the use of plugins (.mng), and the use of resources like sound (.wav) and text (.txt),

    I put the resources on "Myapp.app/Contents/Resources", and I use QString manipulation with QCoreApplication::applicationDirPath() to refer to that path, so I could load the text, sound (by QSound), or .mng (by QMovie) through appropriate Qt Class.

    What seems to be wrong ?

  2. #2
    Join Date
    Mar 2007
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default QObject::moveToThread warning

    Sorry for repost, I think I post the previous message on the wrong thread.

    Dear All,

    I've experienced a problem when I link the Mac OS X application to Qt as frameworks.
    I followed the documentation "Deploying an Application on Qt/Mac".

    After I link it, this qWarning comes out :

    QObject::moveToThread: Current thread (0x5e23a50) is not the object's thread (0x5e072f0).
    Cannot move to target thread (0x5e072f0)

    I'm not sure which object (obviously lives in main thread) that is moved to which thread.
    Since I'm not experiencing this, before I link the application to Qt, and copy necessary resources.
    But I assume it's a QtGui object, because it came out once a QMainWindow object / QDialog is created.

    I suspect this is related to the use of plugins (.mng), and the use of resources like sound (.wav) and text (.txt),

    I put the resources on "Myapp.app/Contents/Resources", and I use QString manipulation with QCoreApplication::applicationDirPath() to refer to that path, so I could load the text, sound (by QSound), or .mng (by QMovie) through appropriate Qt Class.

    What seems to be wrong ?

  3. #3
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QObject::moveToThread warning

    See this thread: http://www.qtcentre.org/forum/f-qt-p...t=moveToThread

    The last post.

    Regards

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QObject::moveToThread warning

    Quote Originally Posted by mnemonic_fx View Post
    Sorry for repost, I think I post the previous message on the wrong thread.
    Next time, please, wait for a moderator to move the thread instead.

Similar Threads

  1. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  2. Problem at time compilation in traslation of language
    By thomasjoy in forum Qt Programming
    Replies: 3
    Last Post: 22nd May 2007, 14:18
  3. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23
  4. a Text Editor with line numbers...
    By fullmetalcoder in forum Qt Programming
    Replies: 47
    Last Post: 5th April 2006, 11:10
  5. warning message on compile not understood
    By impeteperry in forum Qt Programming
    Replies: 13
    Last Post: 23rd January 2006, 23:36

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.