Results 1 to 3 of 3

Thread: queued signal/slot connection with QList<int>

  1. #1
    Join Date
    Jan 2006
    Posts
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default queued signal/slot connection with QList<int>

    hi all,

    i get the following error message in debug mode when signal is emitted (which is connected to a slot in another thread)

    Qt Code:
    1. QObject::connect: Cannot queue arguments of type 'const QList<int>'
    To copy to clipboard, switch view to plain text mode 

    how can i solve the problem without reinventing a list of ints???

    greetz
    smalls

  2. #2
    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: queued signal/slot connection with QList<int>

    Try:
    Qt Code:
    1. typedef QList<int> IntList;
    2. // ...
    3. qRegisterMetaType< IntList >( "IntList" );
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Jan 2006
    Posts
    18
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: queued signal/slot connection with QList<int>

    it works, thanks!

Similar Threads

  1. Queued connection fails on own class
    By ^NyAw^ in forum Qt Programming
    Replies: 3
    Last Post: 2nd December 2008, 18:50
  2. Queued connection / Signal accumulation
    By pokey909 in forum Qt Programming
    Replies: 1
    Last Post: 18th March 2008, 19:42
  3. Client/Server Error: BadIDChoice
    By 3nc31 in forum Qt Programming
    Replies: 5
    Last Post: 27th November 2007, 10:22
  4. Passing a pointer in Signal/Slot Connection
    By mclark in forum Qt Programming
    Replies: 4
    Last Post: 6th November 2007, 19:04
  5. Replies: 1
    Last Post: 4th November 2006, 06:53

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.