Results 1 to 2 of 2

Thread: Single slot for multiple list boxes

  1. #1
    Join Date
    Jan 2007
    Posts
    21
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Single slot for multiple list boxes

    Hi,

    I have multiple List boxes in my application. Each for a different functionality provider ( list of providers present in the application )

    Is it possible to write a single slot for all the list boxes ? Is there any way to identify in which list box the user has made the selection ?

    Right now I have different slot for each list box selection. But the code in all the slots is same except for one macro which identifies the list box.


    Thanks & regards,
    Sheetal

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Single slot for multiple list boxes

    Hi,

    have a look at QObject::sender().

    Lykurg

  3. The following user says thank you to Lykurg for this useful post:

    Sheetal (15th April 2008)

Similar Threads

  1. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13

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.