Results 1 to 2 of 2

Thread: Emit to specific receiver

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2011
    Posts
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Emit to specific receiver

    is possible to emit signal only on specific object ? If I do have three objects to listen signals, is possible to send the signal only one of them?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,372
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Emit to specific receiver

    If you know who you want to notify, then you don't need signals and slots. Just call the required method of the object directly (or use events in case of objects living in a different thread).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Is there any way to set a 'contexmenu receiver'?
    By tonnot in forum Qt Programming
    Replies: 0
    Last Post: 28th October 2011, 10:16
  2. Incompatible sender/receiver arguments
    By davidovv in forum Qt Programming
    Replies: 3
    Last Post: 6th May 2011, 10:44
  3. Replies: 5
    Last Post: 14th February 2011, 14:06
  4. Receiver
    By Salazaar in forum Newbie
    Replies: 1
    Last Post: 5th May 2007, 19:26
  5. postEvent() to a non-existing receiver
    By Artschi in forum Qt Programming
    Replies: 7
    Last Post: 1st June 2006, 14:44

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.