Results 1 to 2 of 2

Thread: How to get value of currentItem in a listview ??

  1. #1
    Join Date
    Nov 2011
    Posts
    17
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Unhappy How to get value of currentItem in a listview ??

    Hi everybody, please tell me the way to get the value of currentItem in a listview in QML ???
    I'm very thank for your help (

  2. #2
    Join Date
    Oct 2011
    Posts
    36
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: How to get value of currentItem in a listview ??

    Try This Code For Get Text Of Selected Item

    Qt Code:
    1. ui->listWidget->selectedItems().at(0)->text()
    To copy to clipboard, switch view to plain text mode 

    (listWidget) is Name Of Your List View

Similar Threads

  1. listview
    By addu in forum Qt Programming
    Replies: 2
    Last Post: 11th May 2009, 12:05
  2. QComboBox currentItem
    By Project25 in forum Qt Programming
    Replies: 2
    Last Post: 29th April 2008, 08:27
  3. QItemDelegates and currentItem
    By mchara in forum Qt Programming
    Replies: 3
    Last Post: 23rd January 2008, 06:52
  4. QListWidget::currentItem() issue
    By high_flyer in forum Qt Programming
    Replies: 4
    Last Post: 16th April 2007, 11:04
  5. what is currentItem?
    By Alina in forum Qt Programming
    Replies: 2
    Last Post: 15th February 2006, 06:35

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.