Results 1 to 1 of 1

Thread: [SOLVED] Two signals emitted, only one slot called!

  1. #1
    Join Date
    Aug 2010
    Posts
    1
    Qt products
    Qt3 Qt4 Qt/Embedded PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Question [SOLVED] Two signals emitted, only one slot called!

    Hi everybody!
    I have a problem that i can't resolve.

    In a class I created a SIGNAL void newMessage(QTcpSocket*,QString) that when is emitted, it calls a method that send to QTcpSocket* the QString message. I happened to observe, however, that if you emit two newMessage into the same method, the two strings passed to the respective SIGNAL are merged into a unique parameter of slot.
    So the slot is called once time only.

    Why does this happen? Can it be overcome, forcing the separation of the two signals?

    Thanks in advance.

    EDIT: I'm sorry, i did a mistake checking the debug output.
    Last edited by codeverse; 11th August 2010 at 17:06.

Similar Threads

  1. Replies: 1
    Last Post: 7th December 2009, 19:49
  2. Slot gets called twice
    By greatgatsby in forum Newbie
    Replies: 7
    Last Post: 20th August 2009, 16:11
  3. SLOT not being called
    By steg90 in forum Qt Programming
    Replies: 4
    Last Post: 6th December 2007, 12:30
  4. Replies: 2
    Last Post: 16th August 2007, 01:20
  5. Replies: 1
    Last Post: 6th March 2007, 16:27

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.