Results 1 to 9 of 9

Thread: Need help understanding QTreeWidget data structure

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    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: Need help understanding QTreeWidget data structure

    Quote Originally Posted by AusSkiller View Post
    Basically I just want to remove the selected item/row when I click a button, so what's the best method for doing that?
    Just delete it.

    Quote Originally Posted by AusSkiller View Post
    not to mention there's no clear indication on how I'm supposed to get the index from the items
    Each item knows its parent, each parent can give you the index of a child through indexOfChild()

    Cheers,
    _

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

    AusSkiller (27th September 2013)

Similar Threads

  1. Replies: 6
    Last Post: 20th May 2011, 17:56
  2. Replies: 4
    Last Post: 22nd March 2011, 17:24
  3. Drawing of graph(data structure) !
    By Abeer in forum Newbie
    Replies: 1
    Last Post: 23rd May 2010, 21:47
  4. Data structure reference in Model/View Framework
    By jimc1200 in forum Qt Programming
    Replies: 4
    Last Post: 14th September 2009, 20:23
  5. Data Structure help!
    By darshan in forum Newbie
    Replies: 8
    Last Post: 18th February 2009, 12:47

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.