Results 1 to 2 of 2

Thread: QTReeView selectedRows()

  1. #1
    Join Date
    Jan 2012
    Posts
    6
    Thanks
    2

    Default QTReeView selectedRows()

    Hey there,

    Is there some kind of functionality to get all selected rows for a QTreeView? I know of selectedIndexes(), but this provides me multiple indexes for a row. This troubles me with later processing. Also it seems this feature has once been in QModelIndexList.

    Please give me a hint, if you have one

    thanks,
    bbg

  2. #2
    Join Date
    Feb 2011
    Posts
    354
    Thanks
    17
    Thanked 27 Times in 24 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Windows

    Default Re: QTReeView selectedRows()

    treeView->selectionModel()->selectedRows()

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

    blackbubblegum (27th February 2012)

Similar Threads

  1. QTreeView and d&d
    By FuturePrimitive in forum Qt Programming
    Replies: 1
    Last Post: 10th November 2011, 20:27
  2. Crash: Heap corruption due to selectedRows()
    By Ankitha Varsha in forum Qt Programming
    Replies: 16
    Last Post: 1st October 2010, 00:55
  3. use QTreeView
    By totosugito in forum Qt Programming
    Replies: 2
    Last Post: 30th January 2008, 09:33
  4. QTreeView help
    By bepaald in forum Qt Programming
    Replies: 1
    Last Post: 15th August 2007, 21:22
  5. QTreeView
    By merry in forum Qt Programming
    Replies: 5
    Last Post: 29th May 2007, 08:38

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.