Results 1 to 4 of 4

Thread: Slot not getting called, Qt::ConnectionType, Thread

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Slot not getting called, Qt::ConnectionType, Thread

    Look in the output of your program for warnings like:
    Qt Code:
    1. QObject::connect: Cannot queue arguments of type 'A::B::J&'
    2. (Make sure 'A::B::J&' is registered using qRegisterMetaType().)
    To copy to clipboard, switch view to plain text mode 
    You will not be able to queue a reference though.

  2. #2
    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: Slot not getting called, Qt::ConnectionType, Thread

    if it is a const reference then he can to queue it, but he have to provide meta data for that type of reference.
    Not const reference requires Blocking Queued Connection.
    See:
    http://developer.qt.nokia.com/doc/qt...across-threads
    http://developer.qt.nokia.com/doc/qt...ctionType-enum
    http://developer.qt.nokia.com/doc/qt...gisterMetaType

Similar Threads

  1. Replies: 2
    Last Post: 26th August 2011, 08:51
  2. connect() return value
    By hojoff79 in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2011, 13:48
  3. Replies: 1
    Last Post: 19th October 2010, 05:08
  4. qdbus connect return always FALSE
    By ciberkids in forum Qt Programming
    Replies: 4
    Last Post: 17th September 2009, 14:17
  5. connect() returns true but slot not called
    By OriginalCopy in forum Qt Programming
    Replies: 6
    Last Post: 4th November 2007, 18:54

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.