Results 1 to 3 of 3

Thread: multiple selection of list view items

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: multiple selection of list view items

    You can iterate through all the QListViewItems via QListView::firstChild() and QListViewItem::nextSibling() and see which ones are selected with QListViewItem::isSelected.

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

    samirg (31st October 2007)

  3. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: multiple selection of list view items

    Or use QListViewItemIterator with "Selected" flag.
    J-P Nurmi

  4. The following user says thank you to jpn for this useful post:

    samirg (31st October 2007)

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.