Results 1 to 7 of 7

Thread: getting clicked item from listview

  1. #1
    Join Date
    May 2009
    Posts
    129

    Default getting clicked item from listview

    Hi All,

    I am displaying the 10 items in listview like widget .inside widget(frame,userimagelabel,userstatus).

    If click any one of row image ,how do i come to know the particular row image is clicked like that...


    please help me


    Thanks

    Addu

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: getting clicked item from listview

    Do you ever read Qt Assistant ??
    It would have taken you less time to search in Assistant than get the answer from this site.
    Anyways have a look at QAbstractItemView::clicked

  3. #3
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: getting clicked item from listview

    If you read more about QListWidget and QListWidgetItem in Qt Assistant you will most probably find the answer.

  4. #4
    Join Date
    May 2009
    Posts
    129

    Default Re: getting clicked item from listview

    can you provide me sample example... How get the clicked item value from listview..

  5. #5
    Join Date
    May 2009
    Posts
    129

    Default Re: getting clicked item from listview

    Hi friends ,

    I am reading the QAbstractItemView...


    Still i am struggling with getting listview item,whenever i am clicking on listview ...


    My actual problem is i have 10 items in listview.... when i amclicking on any one of the item,i have find which item is clicked and i have to send to some where...

    If any provide sample sample code it will be better for you..



    Thanks

    Addu

  6. #6
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: getting clicked item from listview

    take a look Qt's exmaples and demos, it's pretty simple question. is it hard to investigate by yourself?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  7. #7
    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: getting clicked item from listview

    Quote Originally Posted by addu View Post
    If any provide sample sample code it will be better for you..
    Better for us? Because then you will stop asking for a sample code. But I guess you wanted to say: for you == of your point of view: for me! And that is neither a good way, because then you will ask another simple question which could be solved by reading the docs. So better we teach you reading the docs, and therefor all informations are given.


    Quote Originally Posted by spirit
    take a look Qt's exmaples and demos, it's pretty simple question.
    No, it isn't a simply question because it is posted in the "Qt Programming" forum not in the "Newbie" forum...

Similar Threads

  1. View, Scene, Item and thread??
    By dungsivn in forum Qt Programming
    Replies: 5
    Last Post: 20th August 2008, 19:21
  2. Item Delegate Painting
    By stevey in forum Qt Programming
    Replies: 3
    Last Post: 9th May 2008, 07:37
  3. How to know wich item is clicked QTreeWidget
    By ^NyAw^ in forum Qt Programming
    Replies: 13
    Last Post: 6th November 2007, 23:47
  4. Getting item from QTableView when clicked on
    By steg90 in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 11:58
  5. Replies: 17
    Last Post: 31st March 2006, 05:57

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.