Results 1 to 3 of 3

Thread: Performance Parameters to be considered while using signnals / slots

  1. #1
    Join Date
    Oct 2014
    Location
    India
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Performance Parameters to be considered while using signnals / slots

    Hello friends,

    I would like to know the impact / overhead of using signals / slots when compared with using direct calls with pointers
    When I have to update a value to consumer for every few milliseconds and when number ( may be 100) of such consumers exist

    Specifically about Many to one relationship i.e. many signals are connected to one slot. In this scenario traditional design patterns are preferred or signals/slots can be preferred choice while developing application using Qt

    Thanks

  2. #2
    Join Date
    Apr 2012
    Location
    India.
    Posts
    88
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Performance Parameters to be considered while using signnals / slots

    Refer the "Slot" paragraph in below link....
    http://qt-project.org/doc/qt-4.8/signalsandslots.html

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

    Default Re: Performance Parameters to be considered while using signnals / slots

    Quote Originally Posted by AK0705 View Post
    I would like to know the impact / overhead of using signals / slots when compared with using direct calls with pointers
    Neglectible. In regular situations signal-slot connections are realized via direct calls.
    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. function pointers as parameters in signals and slots
    By ggdev001 in forum Qt Programming
    Replies: 5
    Last Post: 21st February 2013, 23:19
  2. Signal and Slots with Large Parameters
    By metdos in forum Qt Programming
    Replies: 2
    Last Post: 3rd April 2010, 16:48
  3. Slots & Signals w/ parameters passed by reference.
    By Wazman in forum Qt Programming
    Replies: 7
    Last Post: 20th December 2008, 01:13
  4. Signals and Slots (with structure as parameters)
    By vishwanath in forum Qt Programming
    Replies: 4
    Last Post: 22nd November 2006, 21:14
  5. Unused parameters in slots
    By ePharaoh in forum Qt Programming
    Replies: 3
    Last Post: 22nd March 2006, 09:30

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.