Results 1 to 8 of 8

Thread: Signal from multipal sender

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: Signal from multipal sender

    You can create a mediator if you want to, i.e. an object that has a signal of the same signature that you connect to the receiver.
    Then you connect all senders to that mediator.

    if with expose you mean that some of those will be internal to some other class, then you can forward a signal by using a signal/signal connection.

    Cheers,
    _

  2. The following user says thank you to anda_skoa for this useful post:

    suneel1310 (27th June 2013)

  3. #2
    Join Date
    Nov 2008
    Location
    Bangalore, India
    Posts
    21
    Qt products
    Qt4 Qt5
    Platforms
    Windows Symbian S60
    Thanks
    1

    Default Re: Signal from multipal sender

    Quote Originally Posted by anda_skoa View Post
    then you can forward a signal by using a signal/signal connection.
    Yes, signal/signal connection would suit my purpose better.

Similar Threads

  1. Replies: 3
    Last Post: 20th April 2011, 16:42
  2. Replies: 0
    Last Post: 15th December 2010, 07:18
  3. Replies: 3
    Last Post: 30th July 2010, 17:34
  4. qobject_cast and sender()
    By ksrarc in forum Qt Programming
    Replies: 1
    Last Post: 23rd September 2009, 17:57
  5. tip on using QObject::sender()
    By drhex in forum Qt Programming
    Replies: 1
    Last Post: 3rd April 2008, 21:01

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.