Results 1 to 2 of 2

Thread: Custom Type Sending

  1. #1
    Join Date
    Jan 2011
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Custom Type Sending

    Hi,

    I've always thought you needed to register a custom type to be able to use it with signals and slots =>see example on qt reference documentation http://crpppc19.epfl.ch/doc/qt4-doc-...pesending.html

    I'm using Qt 4.8.2 with Mingw 4.6.1, and I'm able to run the above example without registering type Message ? Same "issue" with a little program of my own.

    Any explanations ?

    Thx

  2. #2
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Custom Type Sending

    Registering is required in case of queued signal and where objects have to be copied by value.
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. Qt QDbus Sending Custom Types with QVariant
    By phil999 in forum Qt Programming
    Replies: 2
    Last Post: 30th December 2012, 18:31
  2. QVariant with Custom Type
    By kasmanit in forum Qt Programming
    Replies: 4
    Last Post: 2nd September 2012, 17:02
  3. QTreeView with custom type
    By jajdoo in forum Newbie
    Replies: 1
    Last Post: 25th September 2011, 20:27
  4. QVariant custom type.
    By hickscorp in forum Qt Programming
    Replies: 0
    Last Post: 3rd May 2010, 14:23
  5. Replies: 8
    Last Post: 14th March 2008, 15:10

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