Results 1 to 2 of 2

Thread: sending data over signal

  1. #1
    Join Date
    Sep 2007
    Posts
    99
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question sending data over signal

    Can I send some data over signal ?
    In this case I want to send QList<MyCustomlyDefinedObject>
    hm ?
    Thanks

  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: sending data over signal

    Qt Code:
    1. QList<MyCustomlyDefinedObject> list;
    2. ...
    3. emit yourSignal( list );
    To copy to clipboard, switch view to plain text mode 
    Just remember, that for queued connections you have to register custom types with qRegisterMetaType().

  3. The following user says thank you to jacek for this useful post:

    gyre (17th December 2007)

Similar Threads

  1. Replies: 4
    Last Post: 19th October 2007, 20:47
  2. sending encrypted data via mail using smtp
    By vermarajeev in forum General Programming
    Replies: 20
    Last Post: 14th August 2007, 20:47
  3. qt network performance
    By criss in forum Qt Programming
    Replies: 16
    Last Post: 24th July 2006, 10:23
  4. speed of setdata - lots of items in treeview
    By Big Duck in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2006, 13:53
  5. Replies: 16
    Last Post: 7th March 2006, 16:57

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.