Results 1 to 5 of 5

Thread: dynamic signal connecting

Hybrid View

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

    Default Re: dynamic signal connecting

    Can't you use connect()?

  2. #2
    Join Date
    Jul 2008
    Posts
    66
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    5

    Default Re: dynamic signal connecting

    Quote Originally Posted by wysota View Post
    Can't you use connect()?
    I tried it but somehow its not working when I create a second pair.

    With the first created pair the connection works...I click sth on the gui..the object of ClassB receives it. After that It emits a "IT WORKS!" back to the GUI. Fine!

    But when i create a second pair and connect them the same way the problem appears!
    I click on the first-pairs GUI (QWidget) on the same button like before, the message "IT WORKS!" doesnt appear on the screen of "first-pair". It appears on the newly created one "second pair".

    While connecting I checked the adresses of both. They are different!

    What could be the problem?

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

    Default Re: dynamic signal connecting

    Can we see some code?

  4. #4
    Join Date
    Jul 2008
    Posts
    66
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    5

    Default Re: dynamic signal connecting

    problem is solved now.
    i made a stupid mistake while setting the information at the destination widget.

Similar Threads

  1. Replies: 4
    Last Post: 16th November 2008, 14:53
  2. Connecting signal to button
    By steg90 in forum Qt Programming
    Replies: 8
    Last Post: 13th December 2007, 11:37
  3. Connecting to a base class signal?
    By AaronMK in forum Qt Programming
    Replies: 4
    Last Post: 26th October 2007, 23:37
  4. Connecting signal to form that is closing
    By steg90 in forum Qt Programming
    Replies: 3
    Last Post: 18th May 2007, 08:54

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.