Results 1 to 3 of 3

Thread: MetaPointer: QPointer with Signals and Slots

  1. #1
    Join Date
    May 2008
    Posts
    4
    Thanked 2 Times in 2 Posts

    Lightbulb MetaPointer: QPointer with Signals and Slots

    I just up'd a little template snippet that you might find as useful as I do: It's a QPointer which allows to connect signals and slots to it, which will always arrive or come from the pointed-to object.

    It's here.

    Regards,
    ntessore

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

    katrina (20th May 2008)

  3. #2
    Join Date
    Jan 2006
    Posts
    369
    Thanks
    14
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: MetaPointer: QPointer with Signals and Slots

    Looks sweet!

    What happens when the new pointer does not have the needed slow? Do you throw a warning or just ignore?

  4. #3
    Join Date
    May 2008
    Posts
    4
    Thanked 2 Times in 2 Posts

    Default Re: MetaPointer: QPointer with Signals and Slots

    The MetaPointer has all slots of the base class used as its template argument. Since I don't think it is possible to dynamically remove static slots, this cannot happen.

Similar Threads

  1. Problem with SpinBox signals and slots
    By ramstormrage in forum Newbie
    Replies: 4
    Last Post: 2nd May 2008, 01:45
  2. Possible signal mapper problem
    By MarkoSan in forum Qt Programming
    Replies: 13
    Last Post: 25th January 2008, 13:11
  3. Signals and Slots Across Threads
    By themusicalguy in forum Qt Programming
    Replies: 1
    Last Post: 26th October 2007, 11:16
  4. signals and slots in plugins
    By anderl in forum Qt Programming
    Replies: 1
    Last Post: 10th October 2007, 13:57
  5. Problem with Signals and Slots
    By Kapil in forum Newbie
    Replies: 11
    Last Post: 15th February 2006, 11:35

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.