Results 1 to 4 of 4

Thread: Connect list items

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Connect list items

    Quote Originally Posted by ecce View Post
    Coming from the C++/PHP world, to me the index object appears out of nowhere. How does the itemClicked() function gets it's arguments?
    That's no different than in C++.
    The index is the argument of the signal, see QAbstractItemView::itemClicked() and is passed to the slot connected to that signal.

    Cheers,
    _

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

    ecce (12th April 2015)

Similar Threads

  1. How to use QSignalMapper for a list of QAction items
    By Sai Kamat in forum Qt Programming
    Replies: 3
    Last Post: 4th March 2014, 10:45
  2. How to use list of items?
    By Squall in forum Qt Programming
    Replies: 1
    Last Post: 19th March 2012, 00:22
  3. Replies: 1
    Last Post: 23rd April 2011, 17:33
  4. Comparing Items In List Box
    By kenny_isles in forum Qt Programming
    Replies: 9
    Last Post: 21st February 2007, 13:06
  5. delete items from list box
    By vvbkumar in forum Qt Programming
    Replies: 4
    Last Post: 23rd June 2006, 19:08

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
  •  
Qt is a trademark of The Qt Company.