Results 1 to 4 of 4

Thread: Unexplainable one signal emission produces multiple slot invocation

  1. #1
    Join Date
    Mar 2007
    Posts
    28
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11
    Thanks
    1

    Default Unexplainable one signal emission produces multiple slot invocation

    Hi all,
    I have a confusing problem that I don't know what the cause of it.

    I have one signal connected to one slot with Qt:: DirectConnection connection type.
    The problem is each time the signal is emitted, the slot is invoked multiple times.

    Anybody know what mistakes I could possibly made ?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: Unexplainable one signal emission produces multiple slot invocation

    How many times do you create the connection?

  3. #3
    Join Date
    Oct 2006
    Posts
    279
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    6
    Thanked 40 Times in 39 Posts

    Default Re: Unexplainable one signal emission produces multiple slot invocation

    ... or is this a case of auto connect

  4. #4
    Join Date
    Mar 2007
    Posts
    28
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11
    Thanks
    1

    Default Re: Unexplainable one signal emission produces multiple slot invocation

    Quote Originally Posted by jacek View Post
    How many times do you create the connection?
    ok my mistake

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.